阅读背景:

在Angular中将attrs作为$ scope变量传递

来源:互联网 

I have a directive and I'm trying to get the Attrs and pass them to the $scope, but I'm not quite sure how to do that. More specifically I'm trying to set attributes in my template equal to what the name is set in my date-picker tag. I tried setting them as a variable, but obviously that didn't work. Help and further clarification is greatly appreciated. Thanks!I have a directive and I'm trying to get the At




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

分享到: