Angular Zoneless & Signals Readiness Checker
Audit package.json, app.config.ts, and Angular components for Zone.js blockers, NgZone usage, legacy decorators, and untracked async updates — 100% client-side.
Categorized Diagnostics
zone.js patches browser async APIs globally and prevents true zoneless execution.
Fix: Remove "zone.js" from angular.json polyfills (build & test) and uninstall it from package.json.
Application bootstrap is explicitly configured to use Zone.js-based change detection.
Fix: Replace provideZoneChangeDetection(...) with provideZonelessChangeDetection() (Angular 20+) or provideExperimentalZonelessChangeDetection() (Angular 18–19).
Uses NgZone.runOutsideAngular, which relies on Zone.js task tracking and is a no-op or broken in zoneless mode.
Fix: Remove NgZone; use signals, afterNextRender() / afterEveryRender(), or ChangeDetectorRef.markForCheck() for external callbacks.
Default change detection relies on Zone.js dirty-checking the entire component tree on every async event.
Fix: Switch to ChangeDetectionStrategy.OnPush so the component is explicitly signal- and event-driven.
Decorator-based @Input() properties do not automatically notify templates when read inside computed() or signal graphs.
Fix: Run `ng g @angular/core:signal-input-migration` or convert to `input()` / `input.required()`.
@Output() with EventEmitter can be simplified to the lighter, RxJS-free output() API.
Fix: Run `ng g @angular/core:output-migration` to convert to `output()`.
Decorator queries update via lifecycle hooks rather than reactive signals.
Fix: Run `ng g @angular/core:signal-queries-migration` to migrate to `viewChild()` / `contentChild()`.
Manual Subjects require async pipe or subscriptions to trigger change detection in zoneless mode.
Fix: Replace synchronous state Subjects with `signal()` and `computed()`, or wrap observables with `toSignal()`.
AsyncPipe calls ChangeDetectorRef.markForCheck() internally, so it works in zoneless mode—though toSignal() is more ergonomic.
In zoneless Angular, raw timers and Promises do not trigger change detection unless they update a signal or call ChangeDetectorRef.markForCheck().
Fix: Update a signal inside the callback (e.g. `count.set(...)`) or inject `ChangeDetectorRef` and call `this.cdr.markForCheck()`.
Angular CLI Migration Commands
ng g @angular/core:signal-input-migrationConverts @Input() fields across your workspace to input() and input.required().
ng g @angular/core:signal-queries-migrationConverts decorator-based template and content queries to viewChild() / contentChild().
ng g @angular/core:output-migrationReplaces @Output() EventEmitter properties with the lightweight output() function.
npm uninstall zone.jsAlso remove "zone.js" from polyfills in angular.json (build and test targets) and src/polyfills.ts.
Why Migrate to Zoneless Angular & Signals?
For years, Angular relied on zone.js to monkey-patch browser APIs such as setTimeout, Promise, and DOM events so it could guess when to re-render. Enabling provideZonelessChangeDetection() replaces that global overhead with fine-grained notifications from signal(), OnPush, and template events—cutting bundle size and boosting runtime performance.
Common Zoneless Migration Blockers & Fixes
1. Direct NgZone Dependencies
Blocker: Calling ngZone.run(), runOutsideAngular(), or onMicrotaskEmpty assumes Zone.js is active.
Fix: Remove NgZone, use afterNextRender() for post-render DOM work, and update signals directly.
2. Untracked setTimeout & Promises
Blocker: Mutating a plain class property inside setTimeout or a Promise.then() callback will no longer update the view without Zone.js.
Fix: Store state in a signal() and call .set() / .update(), or call ChangeDetectorRef.markForCheck().
3. Legacy @Input() & @ViewChild()
Issue: Decorator inputs and queries are imperative and do not compose cleanly with computed().
Fix: Run ng g @angular/core:signal-input-migration and ng g @angular/core:signal-queries-migration.
4. zone.js in Polyfills & package.json
Blocker: Leaving "zone.js" in angular.json still ships Zone.js in your production bundle.
Fix: Remove "zone.js" from polyfills in angular.json and run npm uninstall zone.js.
Official Angular Documentation & Migration Guides
- Angular Zoneless Guide →Official guide to enabling zoneless change detection, removing zone.js, and testing zoneless apps.
- Angular Signals Guide →Complete reference for signal(), computed(), effect(), and RxJS interop with toSignal().
- Signal Inputs Migration Schematic →How to run ng g @angular/core:signal-input-migration safely across your workspace.
- Output() Migration Schematic →Automated migration from @Output() EventEmitter decorators to the output() function.
Related Angular Developer Tools
Frequently Asked Questions
- What is Zoneless Angular and why should I migrate?
- Zoneless Angular removes Zone.js monkey-patching from your application and relies on Signals, ChangeDetectionStrategy.OnPush, event listeners, and explicit markForCheck() calls to trigger change detection. This reduces bundle size, improves Core Web Vitals, simplifies stack traces, and avoids unnecessary full-tree dirty checks.
- What are the biggest blockers to removing zone.js in Angular?
- The most common blockers are direct NgZone usage (run, runOutsideAngular, onMicrotaskEmpty, isStable), raw setTimeout/setInterval/Promise callbacks that mutate plain class properties instead of updating signals or calling ChangeDetectorRef.markForCheck(), and ChangeDetectionStrategy.Default components that depend on Zone.js ticking.
- Do I need to replace every BehaviorSubject with signal() before going zoneless?
- No. Templates using the async pipe (| async) or toSignal() already notify Angular when values emit. However, replacing local BehaviorSubjects with signal() and computed() eliminates RxJS boilerplate and gives you synchronous, glitch-free reactivity.
- What Angular CLI schematics automate the migration to Signals?
- Angular provides official schematics for the heavy lifting: `ng g @angular/core:signal-input-migration` for @Input(), `ng g @angular/core:signal-queries-migration` for @ViewChild/@ContentChild, and `ng g @angular/core:output-migration` for @Output().
- Is my Angular source code uploaded anywhere?
- No. All static analysis, scoring, and CLI command generation run 100% locally in your browser. Your proprietary code and package.json never leave your machine.