× {{alert.msg}} Never ask again
Get notified about new tutorials RECEIVE NEW TUTORIALS

Angular how to prevent FOUC

<p>If you're using <code>ngCloak</code> you have to add specific styles in your <code>&lt;head&gt;</code> (so they work before AngularJS is loaded).</p> <pre><code>[ng\:cloak], [ng-cloak], [data-ng-cloak], [x-ng-cloak], .ng-cloak, .x-ng-cloak { display: none !important; } </code></pre> <p><a href="https://docs.angularjs.org/api/ng/directive/ngCloak">https://docs.angularjs.org/api/ng/directive/ngCloak</a></p> <p>This tip was originally posted on <a href="http://stackoverflow.com/questions/26108625/Angular%20how%20to%20prevent%20FOUC/26115840">Stack Overflow</a>.</p>
comments powered by Disqus