When reloading a page of my angularJS app, it will show "School:", very ugly. I do not want to show this incomplete information during the page loading.
Wherever you want to achieve this behavior, just add ng-cloak to that html tag. This will prevent the UI from showing the content until the expression is evaluated.
Sign up to request clarification or add additional context in comments.
Comments
1
Instead of using double curlies, a better solution would be to use the ngBind or ngBindTemplate directives, which are invisible to the user while the page is loading:
ng-cloakdirective for this .