πŸ“Š Angular
Q. How can you unsubscribe from Observables in Angular to avoid memory leaks?
  • (A) Use the unsubscribe() method in ngOnDestroy
  • (B) Use async pipe
  • (C) Use takeUntil operator
  • (D) All of the above
πŸ’¬ Discuss
βœ… Correct Answer: (D) All of the above

Explanation: All methods help manage Observable subscriptions safely.

Explanation by: Mr. Dubey
All methods help manage Observable subscriptions safely.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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