Home » AngularJS ng-cloak Directive

AngularJS ng-cloak Directive

by Online Tutorials Library

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:

Test it Now

Example2:

Test it Now

You may also like