167
AngularJS ng-cloak Directive
The AngularJS ng-cloak directive is used to prevent the document from showing incomplete AngularJS code while your application is loading. This directive also prevents the undesirable flicker effects caused by the HTML template display when the application is being loaded.
This is supported by all HTML elements.
Syntax:
Let’s take an example to demonstrate ng-cloak directive.
See this example:
Example1:
Example2:
Next TopicAngularJS ng-controller Directive