angularjs - make an element with ng-if start hidden (prevent it from showing during page load) -


when want make start hidden ng-show can add class="ng-hide" css hide element beforehand. way element won't shown when page still loading

i want same thing using ng-if don't know how it

as michiel suggested, using ngcloak directive solution.
add ng-cloak class attribute of tag want keep hidden while application loading.

<div class="ng-cloak">test</div> 

for more details: https://docs.angularjs.org/api/ng/directive/ngcloak


Comments

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -

r - Update two sets of radiobuttons reactively - shiny -