hey icon indicating copy to clipboard operation
hey copied to clipboard

$broadcast

Open darrylkuhn opened this issue 9 years ago • 2 comments

First thanks for taking the time to open source this and support it!

Is there a reason hey only supports $emit() and not also $broadcast()? I recognize that I can throw a $rootScope.$broadcast() but that requires me to inject $rootScope and that's one of the things I am trying to avoid (once it's injected then it's more likely to be abused)...

darrylkuhn avatar Feb 24 '16 00:02 darrylkuhn

Thanks for opening an issue!

I think my original use case didn't call for $broadcast, but I would more than happy to support it! Any chance you would like to submit a PR? Otherwise I can get to it soonish.

callmehiphop avatar Feb 24 '16 17:02 callmehiphop

Cool - I'll work it up and submit a PR.

darrylkuhn avatar Feb 24 '16 19:02 darrylkuhn