It should be possible by injecting $rootScope into both services and adding the normal $emit and $on calls. Here is a plunker demonstrating what I mean: http://plnkr.co/edit/6O9qEDCWoauucuDzxygn
This smells like a poor design to me though..
質問
I'm not so new in angularjs(two week experience). is it possible to broadcast data from a service and use that data in another service. i just want to pass data between services not controller if it's possible. i know it's possible between controllers and from service to controllers .
解決
It should be possible by injecting $rootScope into both services and adding the normal $emit and $on calls. Here is a plunker demonstrating what I mean: http://plnkr.co/edit/6O9qEDCWoauucuDzxygn
This smells like a poor design to me though..