阅读背景:

AngularJS指令:将动态创建的对象作为嵌套指令的属性传递

来源:互联网 

I have a directive that wraps around another directive . The child directive accepts an "options" object as an attribute. I want to create this options object in the parent directive's link function and then set it as an attribute on the child directive in the parent's template, but the options object does not get set if its created dynamically. This works if the options object is set statically in the template itself.I have a directive that wraps around another di




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: