This article describes the solution to the problem of flickering when Angularjs is not initialized. Share it for your reference, as follows:
Method 1:
Use the ng-cloak directive, use the instruction in the bound data area and set the style of the instruction to hide, as shown below:
Html:
<body ng-controller="QuberController" ng-cloak>
Css:
.ng-cloak { display: none; }Method 2:
Use the ng-bind directive instead of {{ item.name }}, as shown below:
{{item.name}} → <span ng-bind="item.name"></span>
Method 3:
Use the resolve attribute (see: http://www.VeVB.COM/article/80523.htm)
I hope this article will be helpful to everyone's AngularJS programming.