有没有办法阻止广播从父控制器传播到子控制器?
家长:
$scope.$on('event', function() {
//stop propagation
})
孩子:
$scope.$on('event', function() {
//only fired by this controller scope
})
有没有办法阻止广播从父控制器传播到子控制器?
家长:
$scope.$on('event', function() {
//stop propagation
})
孩子:
$scope.$on('event', function() {
//only fired by this controller scope
})