I am working on an AngularJs project. I have a service which sets and removes events on some buttons. This service is utilized by another service which I do not want to inte
If you want to send an event between services/directives use broadcast:
broadcast
$rootScope.$broadcast('buttonPressedEvent');
And recieve it like this:
$rootScope.$on('buttonPressedEvent', function () { //do stuff })