Angular.js 1.3 One-time binding in ng-bind

后端 未结 1 862
温柔的废话
温柔的废话 2021-02-11 13:05

In Angular.js 1.3 I can do a one time binding with:

{{::name}}

But how may I use this in ng-bind?

ng-bind had

相关标签:
1条回答
  • 2021-02-11 13:28

    Yes. This works:

    <span ng-bind="::name"></span>
    
    0 讨论(0)
提交回复
热议问题