Angularjs - Hide content until DOM loaded

后端 未结 6 2202
深忆病人
深忆病人 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:17

    On your caseWrap element, put ng-show="contentLoaded" and then where you currently have $('#caseWrap').show(); put $scope.contentLoaded = true;

    If the caseWrap element is outside this controller, you can do the same kind of thing using either $rootScope or events.

提交回复
热议问题