how to hide angularJs Code when page is refreshed? -
how hide angularjs code when page refreshed ?
please see :
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
Post a Comment