Events communication Service -> Component


#1

Hello there!

I’m trying to figure out what’s the best way to communicate changes from a service to a component.

Just tried with https://ionicframework.com/docs/v2/api/util/Events/ but looks like it doesn’t work from a service. Any advice?


#2

Can’t speak to “best way”, but what I typically do is to just expose an Observable in the service and have components subscribe to it.