I wrote a service and injected it into my dialog. I expected the service's ngOnDestroy() function to be called when I close the dialog. But it doesn't.
So I wondering when ngOnDestroy() will be fired?
How would I unsubscribe my Subscriptions in the service if I want them to be killed as the dialog closes?
Here is the stackblitz example: https://stackblitz.com/edit/angular-bf1taz