I use Angular routing. When I click to some url, it shows me template with undefined fields until data from http rest service is loaded. Is it possible to wait and show template when data is already loaded and binded?
2
-
What router do you use? share code– Ben DiamantFeb 16, 2015 at 8:24
-
1Yes it is ! all you gotta do is to use ng-bind directive. rather then going with {{}} braces for binding the model's value. or while routing, you can go with resolve method.– Nikhil ShahFeb 16, 2015 at 8:25
Add a comment
|
1 Answer
You can use ng-cloak
The ngCloak directive is used to prevent the Angular html template from being briefly displayed by the browser in its raw (uncompiled) form while your application is loading
Another option is use ng-bind
instead of double brackets {{ }}