AngularJS ng-cloak
Directive
AngularJS Example
Preventing application flicker on page load:
<div ng-app=""><p ng-cloak>{{ 5 + 5 }}</p></div>
Definition and Usage
The ng-cloak directive is used to prevent issues that may arise while the AngularJS application is loading.
When an AngularJS application is loading, the document may briefly display AngularJS code before it is fully loaded, causing a flicker effect. The ng-cloak directive is designed to prevent this issue.
Syntax
Supported by all HTML elements.
Parameter Values
The ng-cloak directive has no parameters.