The
ngCloak
directive is used to prevent the Angular html template from being briefly displayed by the browser in its raw (uncompiled) form while your application is loading. - View source
HTML
<div ng-cloak>
<h1>Hello {{ name }}</h1>
</div>
ngCloak
can be applied to the body element, but the preferred
usage is to apply multiple ngCloak directives to small portions of the
page to permit progressive rendering of the browser view.
The ngCloak
directive has no parameters.
See also: Preventing flickering