This may be a dumb solution, you'd better use $rootScope.$on(event, handler)
and $rootScope.$emit(event, args…)
and not use a third-party service.
My solution will bring you:
- support for
off()
if you really want to clean up your event handlers - maybe a conceptually better solution than using scopes, as with a service you make yourself independant from your view