How to remove delay from ngShow initialization? When ng-cloak fails?

后端 未结 3 1223
天涯浪人
天涯浪人 2021-01-29 03:52

I\'ve run into the exact same problem found in this question. However both answers did not work in my case.

Video of my problem: https://www.youtube.com/watch?v=Byjmwmam

3条回答
  •  旧巷少年郎
    2021-01-29 04:27

    I know this has been answered, but I have another solution.

    Using the bootstrap.css:

    This will remove the collapse class if required, but it will start off as hidden until angular can evaluate it.

    Otherwise use any class that sets display:none, and remove it with ng-class.

提交回复
热议问题