Problem Statement
What is NgZone and how does it help Angular update the view?
Explanation
NgZone tracks async tasks (timers, XHR, promises). When an async task completes inside Angular’s zone, Angular runs change detection and updates the view. For performance-critical code, you can run work `outsideAngular` and re-enter to update the UI when needed.