angular.js - 关于指令scope中@的问题
PHPz
PHPz 2017-05-15 17:03:38
0
1
519

为什么这里@没有赋值给info能
换成
<p my-customer type="name" info="igor">{{igor}}</p>
scope:{

 info:"=info"

}
就可以了:(

PHPz
PHPz

学习是最好的投资!

reply all(1)
左手右手慢动作

That’s because you didn’t read the document carefully:

Pay attention to the part I selected, @只针对字符串。你绑定的{{ igor }}, is the result a string? Obviously not.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template