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
You can create and emit an event with the following on your element
ng-click="$emit('customEvent')"
Then in your controller you can use
$rootScope.$on('customEvent', function(){ // do something })
Demo