Hi,
Use $rootScope for this. One service send $broadcast, all other listen using $on method.
I always prefix message names e.g. "event:" so it's easy to find all the usages by doing text search in code.
Regards,
Witold Szczerba
---
Sent from my mobile phone.
--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To post to this group, send email to ang...@googlegroups.com.
To unsubscribe from this group, send email to angular+u...@googlegroups.com.
Visit this group at http://groups.google.com/group/angular?hl=en-US.
--
I don't think it's crazy. Sounds like a good solution.
Most important is that your service does not handle listeners, so you do not have to worry about leaks.
Regards,
Witold Szczerba
---
Sent from my mobile phone.