【发布时间】:2014-04-29 17:29:18
【问题描述】:
我有两个这样的控制器
<div ng-controller="ParentController">
<div ng-controller="ChildController">
... my grid table ..
</div>
</div>
js代码
function ParentController($scope) {
...
$scope.refreshBtnClicked = function() {
//here I want to call refreshGrid method of ChildController
}
}
function ChildController($scope) {
...
$scope.refreshGrid = function() {
... its using some inner variables of Child controller...
}
}
我怎么称呼它?
【问题讨论】:
标签: angularjs