父子之间
<div ng-controller="ParentCtrl">
<div ng-controller="ChildCtrl"></div>
</div>
父亲这边:
$scope.$emit("ss", {
ss:true;
});
孩子这边:
$scope.$on('ss', function (event, data) {
$scope.ss= data.ss;
});
兄弟之间
<div ng-controller="FirstCtrl"></div>
<div ng-controller="SecondCtrl"></div>
谁广播
$rootScope.$broadcast("ping");
谁接收
$scope.$on('ping', function (event, data) {
});