Broadcating event on button click :-
$scope.onButtonClick = function(){ $rootScope.$broadcast(\'onButtonClick\'); }
And catching event in
Angular $rootScope.$broadcast() event caught twice in controller
$rootScope.$broadcast()
$scope.$on('saveCancelLeadInfo', function (event, args) { if ($scope.$$listenerCount["saveCancelLeadInfo"] > 1) { $scope.$$listenerCount["saveCancelLeadInfo"] = 0; } your code here });