Q. What is the role of `ngOnDestroy` lifecycle hook?
β
Correct Answer: (B)
Cleanup before component is destroyed
Explanation: `ngOnDestroy` is used to unsubscribe and cleanup resources.