how to hide angularJs Code when page is refreshed? -


how hide angularjs code when page refreshed ?

please see :

enter image description here

how hide {{userinfo.username}} when page refreshed ?

this not user-friendly.

just use ng-cloak:

<div id="template1" ng-cloak>{{ 'hello' }}</div> <div id="template2" class="ng-cloak">{{ 'world' }}</div> 

it hides given elements until application loaded. note documentation states best results, should load angular.js in head section, ensures functionality accessible right after head has been processed.


Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

dns - Dokku server hosts two sites with TLD's, both domains are landing on only one app -

Delphi 7 and decode UTF-8 base64 -