Answer the question
In order to leave comments, you need to log in
How does ngOnDestroy work in Angular?
I understand what are the life cycles of the component and did not quite understand how ngOnDestroy works.
The doc says: "This method is called before the framework removes the component." But, what does "remove a component" mean, please explain what is meant.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question