K
K
kachurinets2018-05-16 12:48:30
JavaScript
kachurinets, 2018-05-16 12:48:30

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 question

Ask a Question

731 491 924 answers to any question