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

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -