![Pawel Kozlowski on Twitter: "What if @angular ngOnInit hook could return a destroy function? Experimental PR: https://t.co/yXM7L6ZMFS https://t.co/mYrJQZFZSb" / Twitter Pawel Kozlowski on Twitter: "What if @angular ngOnInit hook could return a destroy function? Experimental PR: https://t.co/yXM7L6ZMFS https://t.co/mYrJQZFZSb" / Twitter](https://pbs.twimg.com/media/FWlHW3fXoAUS8bp.jpg)
Pawel Kozlowski on Twitter: "What if @angular ngOnInit hook could return a destroy function? Experimental PR: https://t.co/yXM7L6ZMFS https://t.co/mYrJQZFZSb" / Twitter
After the application is destroyed the Router service still works · Issue #40502 · angular/angular · GitHub
![javascript - How to Destroy Active Routing Component from another component in angular - Stack Overflow javascript - How to Destroy Active Routing Component from another component in angular - Stack Overflow](https://i.stack.imgur.com/sORAM.png)