I've got this in a first controller : (executed on ng-mouseover)
$scope.overMenu = function() {
$rootScope.$broadcast('overMenu');
console.log('overMenu');
};
And this in a second one :
$scope.$on('overMenu', $scope.overMenu());
$scope.overMenu = function()
{
console.log('on overMenu');
//gridLayoutPlugin.updateGridLayout();
};
But my event is fired or catched only once and i don't understand why...