Q. What is the role of `ngOnDestroy()` lifecycle hook?
β
Correct Answer: (A)
To clean up just before Angular destroys the component
Explanation: `ngOnDestroy` is used for cleanup logic like unsubscribing observables.