0
Why does Angular use Zone.js, and what would happen if we remove it?
subina kallyani
easy
0completed
4
Answer
Zone.js patches async APIs (setTimeout, Promises, events) so Angular knows when to trigger change detection. Without it, Angular wouldn’t know when data changes, and the UI wouldn’t update automatically. You’d have to manually trigger ChangeDetectorRef.detectChanges().
Why it’s useful: Shows deeper knowledge of Angular internals, not just “what is change detection”.
Click to Reveal Answer
Tap anywhere to see the solution
Revealed
Comments0