Konda.eu

AngularJS hide fields until initialized

No comments

AngularJS hide fields until initialized

A pesky thing about AngularJS is that all of the code in HTML that is mustache {{ is visible. To avoid this everything related to AngularJS can be hidden until website is finished loading up using:

[ng\:cloak], 
[ng-cloak], 
[data-ng-cloak], 
[x-ng-cloak], 
.ng-cloak, 
.x-ng-cloak {
    display: none !important;
}

 

Leave a Reply

Your email address will not be published.

Time limit is exhausted. Please reload CAPTCHA.