{{ 5 + 5 }}

``` --- ">

{{ 5 + 5 }}

``` --- " />
Easy Tutorial
❮ Ng Ng Class Odd Angularjs Validation ❯

AngularJS ng-cloak Directive

AngularJS Reference Manual


AngularJS Example

Preventing application flicker on page load:

<div ng-app="">&lt;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.


AngularJS Reference Manual

❮ Ng Ng Class Odd Angularjs Validation ❯