πŸ“Š Angular
Q. How do you unsubscribe from an Observable in Angular to prevent memory leaks?
  • (A) Call unsubscribe() method on the subscription
  • (B) Use async pipe only
  • (C) Unsubscribe is automatic, no action needed
  • (D) Call complete() method on Observable
πŸ’¬ Discuss
βœ… Correct Answer: (A) Call unsubscribe() method on the subscription

Explanation: Manually unsubscribe or use async pipe to avoid leaks.

Explanation by: Mr. Dubey
Manually unsubscribe or use async pipe to avoid leaks.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
51
Total Visits
πŸ“½οΈ
8 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
81%
Success Rate