阅读背景:

AngularJS - 如何使用“require”获取指令中的指令控制器

来源:互联网 

I have a directive with a require. Now I want to get the required controller instance AND the controller of the directive in the link function. How is that possible? If i set 'require' the fourth parameter of the link function only contains the required controller. If I do not set the requirement the fourth parameter of the link function contains the controller of the directive. How to get both?I have a directive with a require. Now I want t




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

分享到: