Inside one of my Angular controllers, I have this:
// controller A $rootScope.$on(\"myEventFire\", function(event, reload) { someAction(); });
For my case...
if ($rootScope.$$listenerCount['myEventFire']) { $rootScope.$$listeners.broadcastShowMessageError = []; }; $rootScope.$on('myEventFire', function (event, reload) { someAction(); })