Angularjs - Hide content until DOM loaded

后端 未结 6 2181
深忆病人
深忆病人 2020-12-01 02:17

I am having an issue in Angularjs where there is a flicker in my HTML before my data comes back from the server.

Here is a video demonstrating the issue: http://you

6条回答
  •  北海茫月
    2020-12-01 03:24

    The accepted answer didn't work for me. I had some elements that had ng-show directives and the elements would still show momentarily even with the ng-cloak. It appears that the ng-cloak was resolved before the ng-show returned false. Adding the ng-hide class to my elements fixed my issue.

提交回复
热议问题