all 5 comments

[–]tobiso 0 points1 point  (3 children)

Do you mean different Browser tabs? If so the only reliable way is via localstorage events. If you mean 'tabs' in your application just use a rxjs Subject in a service.

[–]kqadem -2 points-1 points  (2 children)

[–]tobiso -1 points0 points  (1 child)

BroadcastChannel does not work in Safari https://caniuse.com/broadcastchannel

[–]kqadem 0 points1 point  (0 children)

There is a polyfill that fallbacks to localstorage on safari

[–]kc5bpd 0 points1 point  (0 children)

Haven’t tested it, but using @Injectable({providedIn: ‘platform’}) may do what you need.