Q. How do you unsubscribe from an Observable in Angular to prevent memory leaks?
β
Correct Answer: (A)
Call unsubscribe() method on the subscription
Explanation: Manually unsubscribe or use async pipe to avoid leaks.