Q. Which lifecycle hook is used to clean up subscriptions in Angular?
β
Correct Answer: (A)
ngOnDestroy
Explanation: ngOnDestroy is used to perform cleanup tasks like unsubscribing from Observables.