AngularJS ng-cloak 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. It can be used in two ways

Using ng-cloak attribute

<div ng-cloak>{{ 'hello' }}</div>

Using class ng-cloak

<div class="ng-cloak">{{ 'hello' }}</div>

For the best result, the angular.js script must be loaded in the head section of the html document.