Q. Which lifecycle hook is called just before Angular destroys a component?
β
Correct Answer: (A)
ngOnDestroy
Explanation: ngOnDestroy is used for cleanup just before destruction.