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 -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -