Q. What does `ngOnDestroy()` lifecycle hook do?
β
Correct Answer: (A)
Cleans up before the component is removed
Explanation: `ngOnDestroy()` is used to perform cleanup like unsubscribing from observables.