<div ng-app="myApp">
<div ng-controller="FirstController">
//In this controller i am having one insert Functionality on ng-click
</div>
<div ng-controller="secondController">
//In this controller i am having one insert Functionality on ng-click
</div>
<div ng-controller="FinalController">
//Here on ng-click i want to trigger all the other controller's click events
</div>
</div>
其实我建立一个角的js应用,在那里我有不同的部分是该用户可以保存自己输入的数据,所以出于这个原因每个控制器这里表现为单个实体,并在每个控制器的按钮点击时执行原始操作。 现在在每个控制器中都有在ng-click上实现的插入功能来将数据发送到表。在最终控制器中有一个保存按钮,我们需要触发所有不同控制器的插入点击,我如何实现这一点,任何快速建议的赞赏。我怎样才能在其他控制器调用/触发一个控制器功能角JS
您可以查看这个问题: [ http://stackoverflow.com/questions/9293423/can-one-controller-call-another](http://stackoverflow.com/questions/9293423/can-one-controller-call-another) – user759863