Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

Question: Explain the purpose of zone.js in Angular.
Answer: Zone.js is a library that helps Angular with change detection. It provides a context for JavaScript execution and allows Angular to know when asynchronous operations, such as HTTP requests or timers, are completed. This knowledge triggers the change detection process.

Example:

import 'zone.js/dist/zone';
Is it helpful? Yes No

Most helpful rated by users:

©2026 WithoutBook