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

后端 未结 3 1212
天涯浪人
天涯浪人 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:52

    Hide them by default in css, then override when angular loads. The 3-4 second delay could be the time it's taking to fetch and load angular amidst all the other requests you're making (you should check your network panel).

    .display-on {
        display: block !important;
        opacity: 1 !important;
    }
    

    ng-class="{'display-on': searchPopoverDisplay}"
    

提交回复
热议问题