When loading is very slow, {{xx}} will be displayed first. How to break it? ?
ringa_lee
When you need to use expressions to output data, don’t do this:
<TAG>{{data}}</TAG>
Instead this:
<TAG ng-bind="data"></TAG>
Or this:
<TAG ng-cloak>{{data}}</TAG>
In addition, this method requires you to manually load the angular-csp.css file into the page.
angular-csp.css
http://www.imooc.com/view/156 There was a lesson about it, and I just started watching it.
When you need to use expressions to output data, don’t do this:
Instead this:
Or this:
In addition, this method requires you to manually load the
angular-csp.css
file into the page.http://www.imooc.com/view/156
There was a lesson about it, and I just started watching it.