var app = angular.module('myApp',[]);
app.controller('EventController',['$scope', function ($scope) {
$scope.count = 0;
$scope.$on('MyEvent',function(event,data) {
$scope.count++;
});
}]);
app.controller('EventController',['$scope', function ($scope) {
$scope.count = 0;
$scope.$on('MyEvent',function(event,data) {
$scope.count++;
});
}]);
2016-08-14