What is NgZone?
Angular provides a service called NgZone which creates a zone named angular
to automatically trigger change detection when the following conditions are satisfied.
- When a sync or async function is executed.
- When there is no microTask scheduled.