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 -

how to prompt save As Box in Excel Interlop c# MVC 4 -

xslt 1.0 - How to access or retrieve mets content of an item from another item? -