Latest web development tutorials

AngularJS ng-cloak instruction

AngularJS Reference Manual AngularJS Reference Manual


AngularJS examples

Prevent application flashes when the page loads:

<Div ng-app = "" >

<P ng-cloak> {{ 5 + 5}} </ p>

</ Div>

try it"

Definition and Usage

ng-cloak instructions for preventing AngularJS AngularJS application code is not loaded after the emergence of problems when loading.

AngularJS application load time, the document may not be loaded due AngularJS code is finished and the display appears AngularJS code, and then there will be a flashingeffect, ng-cloak directive is to prevent the problem from occurring.


grammar

<Element ng-cloak> </ element>

All HTML elements are supported.


Parameter Value

ng-cloak instruction has no parameters.


AngularJS Reference Manual AngularJS Reference Manual