A callback method that is invoked immediately after
Angular has completed initialization of a component's view.
It is invoked only once when the view is instantiated.
Returns void
ngOnDestroy
ngOnDestroy(): void
A callback method that performs custom clean-up, invoked immediately
before a directive, pipe, or service instance is destroyed.
Whether the contents displayed in this component can be edited by the user or not.
Defaults to
true