Angular · Senior · Question 3 of 75
How do you enable zoneless change detection?
- ✓Correct answer: Add
provideZonelessChangeDetection()to the app providers and removezone.jsfrom polyfills - 2Set
ChangeDetectionStrategy.Zonelesson every component - 3Call
NgZone.disable()inmain.ts
Explanation
Recent Angular versions create new projects zoneless by default. Removing Zone.js reduces bundle size, makes stack traces cleaner and avoids unnecessary checks.