I am wondering If I subscribe to stream in my constructor like this:
_eventEmitterService.event.subscribe((msg)=>{})
So when I change the view to different component, and come back, the events are triggered twice from that stream. Do I need to unsubscribe each time I change the component, by using ngOnDestroy
?
Thanks