Q. Which lifecycle hook is called before a component is destroyed?
β
Correct Answer: (A)
ngOnDestroy
Explanation: Use `ngOnDestroy` to clean up subscriptions and other resources before the component is destroyed.