根据AngularJS Developer Guide - Directives "Isolating the Scope of a Directive" , 作用域绑定(bind)可以分为3种类型
=
, @
和 &
和
根据 "Directive Definition Object" section in this Page , 作用域绑定(bind)可以分为4种类型
=
, @
, &
和 <
即使在大多数在线文章中,也只给出了 3 种类型的独立作用域绑定(bind)。
哪个是正确的?
最佳答案
这些是 angular 1.5 之前的标准绑定(bind)
=, @ and &
从 Angular 1.5 开始,随着基于组件的架构的新概念,它被引入了这个绑定(bind)
<
表示单向绑定(bind)。
关于angularjs - 隔离作用域绑定(bind)类型,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43612804/