阅读背景:

AngularJS指令的两个实例,更改为2nd会影响第一个实例。

来源:互联网 

I have a directive that in the link function will change the image thumbnail based on when the has a change made to it. I have 2 instances of this directive on the same page. One belonging to each controller, the main controller and the edit controller. When I try to change the image belonging to the directive instance in the edit state (child of main), the change is made to the 1st instance of the directive in the main state and not the 2nd. Any help would be appreciated.I have a directive that in the link function wi




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

分享到: