Q. Which Angular lifecycle hook is called when a component is destroyed?
β
Correct Answer: (A)
ngOnDestroy
Explanation: ngOnDestroy is called just before Angular destroys the component.