WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

AngularJS ng-cloak Directive


Example

Prevent the application from glimmer at page load:

<div ng-app="">

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

</div>
Try it yourself »

Definition and Usage

The ng-cloak request shields the document from showing inadequate AngularJS code while AngularJS is being loaded.

AngularJS applications can make HTML records flicker when the application is being stacked, exhibiting the AngularJS code for a second, preceding all code are executed. Use the ng-cloak request to foresee this.


Syntax

<element ng-cloak></element>

Supported by all HTML elements.


Parameter Values

The ng-cloak request has no parameters.