Q. What is `zone.js` used for in Angular?

  • (A) To track async operations and trigger change detection
  • (B) To write templates
  • (C) To handle dependency injection
  • (D) To build animations
πŸ’¬ Discuss
βœ… Correct Answer: (A) To track async operations and trigger change detection
Explanation: `zone.js` is a library used to patch async operations and notify Angular to run change detection.
Explanation by: Mr. Dubey
`zone.js` is a library used to patch async operations and notify Angular to run change detection.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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