Skip to content
ToolShedby Wasim Shaikh

Angular 18 to 22 Upgrade Checklist & Breaking Changes (Plus 15, 16, 17 & 20)

Wasim · 27 Nov 2026

Upgrading a production Angular application to Angular 22 means stepping through each major version one hop at a time so the official ng update schematics can rewrite templates, imports, and configuration safely. Whether you are starting from Angular 18 (18 → 19 → 20 → 21 → 22), Angular 20 (20 → 21 → 22), or an older release like Angular 15, 16, or 17, the same rule applies: never skip majors.

This guide gives you the exact ng update hop sequence, the Node.js and TypeScript version matrix for every hop, and the breaking changes and deprecations you need to watch for before and after each step.

Interactive planners: Generate a tailored step-by-step checklist for your exact path:


1. Pre-Flight Checklist (Before Every Hop)

Repeat these four checks before every major hop—not just at the beginning:

  1. Start from a clean Git tree: Commit or stash all pending changes so you can inspect or revert schematic diffs cleanly.
  2. Update to the latest minor/patch of your current major first: For example, if you are on 18.0.x, update to the latest 18.2.x before jumping to 19.
  3. Verify Node.js and TypeScript compatibility: Angular 20 drops Node 18, and Angular 22 drops Node 20 and TypeScript 5.x. Check your local and CI versions with the Angular Node.js & TypeScript Version Checker.
  4. Build and test after every single hop: Run ng build and your unit/e2e test suite between majors before moving on.

2. Node.js, TypeScript & RxJS Compatibility Matrix (Angular 15–22)

Each Angular major enforces strict engines and peerDependencies ranges. Use this matrix to plan your Node.js bumps in nvm, Dockerfiles, and CI workflows:

Angular Version Node.js Supported TypeScript Supported RxJS Supported Support Status
Angular 15 ^14.20.0 || ^16.13.0 || ^18.10.0 ~4.8.2 (15.0) / >=4.8.2 <5.0.0 (15.1–15.2) ^6.5.3 || ^7.4.0 Unsupported
Angular 16 ^16.14.0 || ^18.10.0 >=4.9.3 <5.1.0 (16.0) / <5.2.0 (16.1–16.2) ^6.5.3 || ^7.4.0 Unsupported
Angular 17 ^18.13.0 || ^20.9.0 >=5.2.0 <5.3.0 (17.0) / <5.5.0 (17.3) ^6.5.3 || ^7.4.0 Unsupported
Angular 18 ^18.19.1 || ^20.11.1 || ^22.0.0 >=5.4.0 <5.5.0 (18.0) / <5.6.0 (18.1–18.2) ^6.5.3 || ^7.4.0 Unsupported
Angular 19 ^18.19.1 || ^20.11.1 || ^22.0.0 >=5.5.0 <5.7.0 (19.0) / <5.9.0 (19.2) ^6.5.3 || ^7.4.0 Unsupported
Angular 20 ^20.19.0 || ^22.12.0 || ^24.0.0 >=5.8.0 <5.9.0 (20.0–20.1) / <6.0.0 (20.2–20.3) ^6.5.3 || ^7.4.0 LTS (ends 2026-11-28)
Angular 21 ^20.19.0 || ^22.12.0 || ^24.0.0 >=5.9.0 <6.0.0 (21.2 patches allow <6.1) ^6.5.3 || ^7.4.0 LTS (ends 2027-06)
Angular 22 ^22.22.3 || ^24.15.0 || ^26.0.0 >=6.0.0 <6.1.0 ^6.5.3 || ^7.4.0 Active (LTS ends 2028-06)

Two toolchain jumps to watch:

  • Entering Angular 20: Node 18 is dropped. Switch to Node 20.19+, Node 22.12+, or Node 24.
  • Entering Angular 22: Node 20 and TypeScript 5.9 (and below) are dropped. Earlier Node 22/24 releases are also below the minimum—make sure you are on Node 22.22.3+, 24.15.0+, or 26.0.0+ and TypeScript 6.0.

3. Starting Earlier? Angular 15, 16, or 17 → 18 First

If you are starting from Angular 15, 16, or 17, clear these milestones on your way to Angular 18 before starting the 18 → 22 sequence:

Hop 15 → 16

ng update @angular/core@16 @angular/cli@16
  • ngcc removed (Critical): View Engine libraries no longer build. Any third-party package still shipped in View Engine format must be updated or replaced before this hop.
  • Signals & DestroyRef: Signals arrive in developer preview alongside takeUntilDestroyed / DestroyRef, required inputs, and router input binding (withComponentInputBinding).

Hop 16 → 17

ng update @angular/core@17 @angular/cli@17
  • Built-in control flow (@if / @for / @switch) and @defer: You can migrate templates early with ng generate @angular/core:control-flow (or preview conversions in the Control Flow Converter).
  • esbuild + Vite application builder: Becomes the default for new apps (@angular-devkit/build-angular:application), while existing apps stay on webpack until migrated. SSR moves to @angular/ssr.

Hop 17 → 18

ng update @angular/core@18 @angular/cli@18
  • Material 3 & @angular/build: Angular Material 3 is stable (plan Material hops with the Angular Material Upgrade Planner), built-in control flow and @defer are stable, and experimental zoneless change detection arrives (provideExperimentalZonelessChangeDetection).

4. The Core Angular 18 → 22 Hop Sequence

Hop 1: Angular 18 → 19

ng update @angular/core@19 @angular/cli@19

Requirements: Node 18.19.1+ / 20.11.1+ / 22, TypeScript 5.5–5.8.

Key breaking changes & migrations:

  • Standalone is the default: Components, directives, and pipes are now standalone by default. The ng update schematic automatically adds standalone: false to existing NgModule-declared classes so nothing breaks immediately. You can later adopt strictStandalone and convert declarations gradually.
  • Signal inputs, outputs, and queries are stable: input(), model(), output(), viewChild(), and contentChild() are production-ready. Decorators (@Input, @Output, @ViewChild) still work; optionally run ng generate @angular/core:signals or use the Signal Inputs Converter.
  • New features to note: Incremental hydration (preview), route-level render modes (SSR/SSG/CSR), experimental resource(), linkedSignal, @let template variables, and style HMR.

Hop 2: Angular 19 → 20

ng update @angular/core@20 @angular/cli@20

Requirements: Node 20.19+ / 22.12+ / 24 (Node 18 dropped), TypeScript 5.8 (up to <6.0).

Key breaking changes & migrations:

  • *ngIf, *ngFor, and *ngSwitch deprecated: Structural directives are officially deprecated in favor of @if / @for / @switch (they still ship in Angular 22, marked for future removal). Run ng generate @angular/core:control-flow on its own commit.
  • TestBed.get() removed & TestBed.flushEffects() deprecated: TestBed.get() is auto-migrated to TestBed.inject(); replace TestBed.flushEffects() with TestBed.tick().
  • DOCUMENT token moved: Moved from @angular/common to @angular/core (rewritten automatically by ng update).
  • Host binding type checking (opt-in): Enable typeCheckHostBindings in angularCompilerOptions during v20 to catch invalid @HostBinding / @HostListener expressions before they become mandatory compile errors in v21.
  • Core signal APIs complete: effect(), linkedSignal(), and toSignal() are stable; zoneless moves to developer preview (provideZonelessChangeDetection).

Hop 3: Angular 20 → 21

ng update @angular/core@21 @angular/cli@21

Requirements: Node 20.19+ / 22.12+ / 24, TypeScript 5.9 (21.2 patches also accept TS 6.0).

Key breaking changes & migrations:

  • Zoneless change detection is the default: New apps run without Zone.js. For existing apps, ng update adds provideZoneChangeDetection() to preserve behavior—audit Zone-dependent code and third-party libraries before removing it.
  • Host bindings are type-checked by default: typeCheckHostBindings is now enabled by default, turning invalid host bindings into compile errors.
  • Vitest replaces Karma as the default test runner: New projects use Vitest; existing projects keep Karma (still supported in 21 and 22). Note that the experimental Jest and Web Test Runner builders are slated for removal in v22. You can convert specs with the Jasmine to Vitest Converter.
  • HttpClient provided by default: Available from the root injector without provideHttpClient(), though you still keep provideHttpClient() when configuring interceptors or features like withFetch().
  • Optional migrations: ng generate @angular/core:ngclass-to-class migrates NgClass/NgStyle to native [class] and [style] bindings. Signal Forms ship as experimental.

Hop 4: Angular 21 → 22

ng update @angular/core@22 @angular/cli@22

Requirements: Node ^22.22.3 || ^24.15.0 || ^26.0.0 (Node 20 dropped), TypeScript 6.0 (5.9 and below unsupported).

Key breaking changes (with automatic migrations):

  • OnPush is the default change detection strategy: Components without changeDetection now use OnPush, and the old Default strategy is renamed Eager. ng update adds changeDetection: ChangeDetectionStrategy.Eager to existing components to preserve behavior—remove Eager component by component as you adopt signals.
  • HttpClient uses the Fetch API by default: ng update removes redundant withFetch() calls and adds withXhr() where XHR-specific features (such as upload progress events) are needed. reportProgress is deprecated in favor of reportUploadProgress and reportDownloadProgress.
  • Template optional chaining returns undefined: a?.b now evaluates to undefined instead of null when a is nullish, matching TypeScript. ng update wraps affected expressions in $safeNavigationMigration() to keep old behavior—audit any === null checks.
  • SSR incremental hydration on by default & stricter Host checks: provideClientHydration() enables incremental hydration by default (the migration adds withNoIncrementalHydration() if you had not opted in). Invalid Host headers now return 400 instead of falling back to CSR, so configure allowedHosts; a migration also adds trustProxyHeaders to AngularNodeAppEngine/AngularAppEngine.
  • canMatch third parameter & strictTemplates: strictTemplates is on by default, and canMatch guards receive a required currentSnapshot parameter (auto-migrated).

Breaking changes without automatic migrations (check before updating):

  • Route paramsInheritanceStrategy defaults to 'always': Route params and data are inherited from all parent routes by default. Set paramsInheritanceStrategy: 'emptyOnly' in withRouterConfig() if you rely on the old behavior.
  • Long-deprecated APIs removed: Search your codebase and third-party libraries for ComponentFactoryResolver, ComponentFactory (use ViewContainerRef.createComponent(ComponentClass)), createNgModuleRef (use createNgModule), ChangeDetectorRef.checkNoChanges (use fixture.detectChanges()), provideRoutes() (use provideRouter() or ROUTES), built-in Hammer.js integration, and getAngularLib/setAngularLib in @angular/upgrade.
  • Stricter template compiler checks: data- prefixed attributes no longer bind to inputs/outputs; binding an input, output, or model to the same name twice is an error; matching multiple component selectors on one element fails at compile time.
  • Experimental Jest & Web Test Runner builders removed: Switch to Vitest or Karma before this hop.
  • CLI changes: PORT environment variable takes top priority in ng serve (overriding angular.json and --port); istanbul-lib-instrument is now an optional peer dependency for Karma coverage; architect CLI moved to @angular-devkit/architect.

5. Post-Upgrade Cleanup on Angular 22

Once your app builds and passes tests on Angular 22, consider running the optional ng update migrations—each on its own commit—to clear v22 deprecations before Angular 23:

# Move from Karma to the default Vitest unit-test builder
ng update @angular/cli --name migrate-karma-to-vitest

# Move off deprecated Webpack builders (@angular-devkit/build-angular) to @angular/build
ng update @angular/cli --name use-application-builder

# Move libraries from deprecated ng-packagr builder to @angular/build:library (22.3+)
ng update @angular/cli --name use-library-builder

Other deprecations to clear during the 22.x cycle include CommonEngine (replace with AngularNodeAppEngine/AngularAppEngine), HttpClient JSONP support (22.1), and the testRunner option (22.3). You can also adopt stable Signal Forms, resource()/httpResource(), @angular/aria, and the new @Service() decorator (ng generate @angular/core:inject followed by ng generate @angular/core:service) via the Angular Inject Converter.


Wasim Shaikh

About the author

Wasim Shaikh is a UI/UX developer and front-end engineer with 15+ years of experience, based in Ahmedabad, India. He specializes in Liferay, React, Angular, Next.js and Tailwind CSS.

Keep reading

Web dev · 27 Nov 2026Angular Material Icons vs Material Symbols: <mat-icon> Setup & Migration GuideWeb dev · 27 Nov 2026APNG vs Animated WebP vs GIF: Which Animated Image Format Should You Use on the Web?Web dev · 27 Nov 2026Lucide Icons vs Heroicons vs Material Symbols: Bundle Size, DX & SVG Comparison for Developers