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:
|
Is it helpful?
Yes
No
Most helpful rated by users: