Q. What is the use of the async pipe in Angular templates?

  • (A) To manually unsubscribe from observables
  • (B) To convert observables to promises
  • (C) To bind observables directly and auto-unsubscribe
  • (D) To format data as JSON
πŸ’¬ Discuss
βœ… Correct Answer: (C) To bind observables directly and auto-unsubscribe
Explanation: The async pipe subscribes to observables and updates the view with emitted values.
Explanation by: Mr. Dubey
The async pipe subscribes to observables and updates the view with emitted values.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
94
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
88%
Success Rate