Angular 18 to 22 Upgrade Checklist & Breaking Changes (Plus 15, 16, 17 & 20)
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:
- Angular 18 to 22 Upgrade Planner
- Angular 20 to 22 Upgrade Planner
- Angular 16 to 22 Upgrade Planner
- Angular 15 to 22 Upgrade Planner
- Angular Material Upgrade Planner (if you also use
@angular/material/@angular/cdk)
1. Pre-Flight Checklist (Before Every Hop)
Repeat these four checks before every major hop—not just at the beginning:
- Start from a clean Git tree: Commit or stash all pending changes so you can inspect or revert schematic diffs cleanly.
- Update to the latest minor/patch of your current major first: For example, if you are on
18.0.x, update to the latest18.2.xbefore jumping to19. - 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.
- Build and test after every single hop: Run
ng buildand 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
ngccremoved (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 alongsidetakeUntilDestroyed/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 withng 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@deferare 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 updateschematic automatically addsstandalone: falseto existing NgModule-declared classes so nothing breaks immediately. You can later adoptstrictStandaloneand convert declarations gradually. - Signal inputs, outputs, and queries are stable:
input(),model(),output(),viewChild(), andcontentChild()are production-ready. Decorators (@Input,@Output,@ViewChild) still work; optionally runng generate @angular/core:signalsor use the Signal Inputs Converter. - New features to note: Incremental hydration (preview), route-level render modes (
SSR/SSG/CSR), experimentalresource(),linkedSignal,@lettemplate 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*ngSwitchdeprecated: Structural directives are officially deprecated in favor of@if/@for/@switch(they still ship in Angular 22, marked for future removal). Runng generate @angular/core:control-flowon its own commit.TestBed.get()removed &TestBed.flushEffects()deprecated:TestBed.get()is auto-migrated toTestBed.inject(); replaceTestBed.flushEffects()withTestBed.tick().DOCUMENTtoken moved: Moved from@angular/commonto@angular/core(rewritten automatically byng update).- Host binding type checking (opt-in): Enable
typeCheckHostBindingsinangularCompilerOptionsduring v20 to catch invalid@HostBinding/@HostListenerexpressions before they become mandatory compile errors in v21. - Core signal APIs complete:
effect(),linkedSignal(), andtoSignal()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 updateaddsprovideZoneChangeDetection()to preserve behavior—audit Zone-dependent code and third-party libraries before removing it. - Host bindings are type-checked by default:
typeCheckHostBindingsis 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.
HttpClientprovided by default: Available from the root injector withoutprovideHttpClient(), though you still keepprovideHttpClient()when configuring interceptors or features likewithFetch().- Optional migrations:
ng generate @angular/core:ngclass-to-classmigratesNgClass/NgStyleto 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):
OnPushis the default change detection strategy: Components withoutchangeDetectionnow useOnPush, and the oldDefaultstrategy is renamedEager.ng updateaddschangeDetection: ChangeDetectionStrategy.Eagerto existing components to preserve behavior—removeEagercomponent by component as you adopt signals.HttpClientuses the Fetch API by default:ng updateremoves redundantwithFetch()calls and addswithXhr()where XHR-specific features (such as upload progress events) are needed.reportProgressis deprecated in favor ofreportUploadProgressandreportDownloadProgress.- Template optional chaining returns
undefined:a?.bnow evaluates toundefinedinstead ofnullwhenais nullish, matching TypeScript.ng updatewraps affected expressions in$safeNavigationMigration()to keep old behavior—audit any=== nullchecks. - SSR incremental hydration on by default & stricter
Hostchecks:provideClientHydration()enables incremental hydration by default (the migration addswithNoIncrementalHydration()if you had not opted in). InvalidHostheaders now return400instead of falling back to CSR, so configureallowedHosts; a migration also addstrustProxyHeaderstoAngularNodeAppEngine/AngularAppEngine. canMatchthird parameter &strictTemplates:strictTemplatesis on by default, andcanMatchguards receive a requiredcurrentSnapshotparameter (auto-migrated).
Breaking changes without automatic migrations (check before updating):
- Route
paramsInheritanceStrategydefaults to'always': Route params and data are inherited from all parent routes by default. SetparamsInheritanceStrategy: 'emptyOnly'inwithRouterConfig()if you rely on the old behavior. - Long-deprecated APIs removed: Search your codebase and third-party libraries for
ComponentFactoryResolver,ComponentFactory(useViewContainerRef.createComponent(ComponentClass)),createNgModuleRef(usecreateNgModule),ChangeDetectorRef.checkNoChanges(usefixture.detectChanges()),provideRoutes()(useprovideRouter()orROUTES), built-in Hammer.js integration, andgetAngularLib/setAngularLibin@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:
PORTenvironment variable takes top priority inng serve(overridingangular.jsonand--port);istanbul-lib-instrumentis 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.
