Q. Which Angular feature helps avoid memory leaks with Observable subscriptions?
β
Correct Answer: (A)
Unsubscribe in ngOnDestroy
Explanation: Unsubscribing in ngOnDestroy prevents memory leaks from Observables.