angular.js - Problems with @ in directive scope
PHPz
PHPz 2017-05-15 17:03:38
0
1
548

Why here @ is not assigned to info but
can be replaced by
<p my-customer type="name" info="igor">{{igor}}</p>
scope:{

 info:"=info"

}
That’s it: (

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