ng-bind ng-bind-html ng-bind-template 区别

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/EasonMu/article/details/54177585
ng-bind:变量(html标签无效)<p ng-bind="foo"></p>
ng-bind-html:变量(html标签有效)<p ng-bind-html="foo"></p>
ng-bind-template:表达式(html标签无效)<p ng-bind-template="{{foo}}"></p>

猜你喜欢

转载自blog.csdn.net/EasonMu/article/details/54177585