Jul 15, 2026 · Updated Nov 13, 2026

Angular 21 to 22 Upgrade: Breaking Changes, Node 22 & Fixes

Angular22UpgradeOnPushSignalFormsMigration

Upgrade Angular 21 to 22 step by step: OnPush default (ChangeDetectionStrategy.Eager), $safeNavigationMigration, route params, and Node 22 + TS 6.0 matrix.

Angular 21 removed the old guard — Karma out, zone.js optional. Angular 22 goes further: it changes what a default component is.

For the first time, OnPush is the default change detection strategy, route parameters flow down the whole tree, and the framework doubles down on being agent-friendly infrastructure. Here is what breaks, and how to fix it.

TL;DR — upgrade Angular 21 to 22 in 4 steps:

node --version # must be 22.22.3+, 24.15+ or 26 (Node 20 is no longer supported) npm install -g @angular/cli@latest ng update @angular/core@22 @angular/cli@22 ng test

The three changes most likely to hit you: OnPush is the new default change detection (a migration adds ChangeDetectionStrategy.Eager to your existing components), route params now inherit with 'always' instead of 'emptyOnly', and Node 22 + TypeScript 6.0 are the new minimums. Details and fixes below.

Angular 22 Breaking Changes: What Breaks and How to Fix It

Breaking changeWhat breaksFix
OnPush is the new default change detectionNothing, if the automatic migration runs — it stamps ChangeDetectionStrategy.Eager on existing componentsLet the migration add Eager; embrace signals in new code
Route params inherit with 'always'Child routes now see every parent param/data, colliding param names may resolve unexpectedlyRename colliding params, or set paramsInheritanceStrategy: 'emptyOnly' to opt out
Node 22 + TypeScript 6.0 are mandatoryBuild fails immediately on Node 20 or TypeScript 5.9Upgrade Node and TypeScript before running ng update
Smaller sharp edgesDuplicate input bindings now a compile error; data-* attributes bind as attributes; transfer cache skips credentialed requestsAudit templates and SSR caching assumptions

1. OnPush Is the Default Now

This is the philosophical headline of v22. A component that doesn’t set changeDetection used to mean “check me on every cycle.” In Angular 22 it means ChangeDetectionStrategy.OnPush.

What breaks: Nothing in your existing code — if you let the migration do its job. ng update adds the new ChangeDetectionStrategy.Eager value (the old check-always behavior, now with a name) to every component that relied on the old default.

What actually changes: Every new component you generate is OnPush. If your team’s habits still assume mutation-based updates (“I changed the property, why didn’t the view update?”), v22 is where those habits die.

The Fix:

  • Let the automatic migration stamp Eager on legacy components. Don’t fight it during the upgrade.
  • For new code, embrace signals — signal(), computed(), and input() make OnPush invisible because updates are tracked at the value level.
  • Migrate old components off Eager incrementally. The Angular MCP server’s onpush_zoneless_migration tool analyzes a component’s dependency graph before you flip the strategy — I covered it in the Angular MCP guide.

2. Route Params Inherit Everywhere

The router’s paramsInheritanceStrategy default changed from 'emptyOnly' to 'always'.

What breaks: Child routes now see every parent route’s params and data. If a child route reads a param name that also exists on a parent (:id on both a parent and child, for example), it may now resolve to a value it never saw before. Components with defensive “param is undefined” branches may silently take the other branch.

The Fix: Audit components that read route params or data. If you need the old behavior back, it’s one line:

provideRouter(routes, withRouterConfig({ paramsInheritanceStrategy: 'emptyOnly', }))

Prefer renaming colliding params (:userId vs :orderId) over reverting globally — the 'always' default is genuinely better for deep-linked detail pages.

3. Which Node.js Version Does Angular 22 Require? (Node 22.22.3+ and TypeScript 6.0)

What breaks: The build, immediately, if your CI or local environment runs Node 20 (now past end-of-life) or TypeScript 5.9.

The Fix: Upgrade Node to 22.22.3+, 24.15+, or 26 and TypeScript to 6.0+ before running ng update. Check your CI images, your Dockerfiles, and your engines field — the local upgrade is always the easy half.

Angular VersionSupported Node.jsSupported TypeScriptDefault Change Detection
Angular 20^20.11.1 || ^22.11.0 || ^24.0.0>=5.8.0 <5.9.0Default (check-always)
Angular 21^20.19.0 || ^22.12.0 || ^24.0.0>=5.9.0 <6.0.0Default (zoneless in new apps)
Angular 22^22.22.3 || ^24.15.0 || ^26.0.0>=6.0.0 <6.1.0OnPush (Eager via migration)

4. Smaller Sharp Edges (and $safeNavigationMigration)

  • Standard optional chaining in templates ($safeNavigationMigration). Chained safe navigation expressions like user?.profile.name now short-circuit the entire chain according to standard JavaScript semantics. During ng update, the schematic wraps ambiguous expressions in $safeNavigationMigration(...) to preserve legacy runtime behavior. Search your templates for $safeNavigationMigration, verify whether standard ?. short-circuiting or an @if guard is what you want, and remove the wrapper.
  • Duplicate input bindings are a compile error. Binding the same input twice on one element used to be silently tolerated; now the template compiler rejects it.
  • data-* attributes are no longer treated as property bindings — they bind as attributes, which is what you almost certainly wanted anyway.
  • The HTTP transfer cache skips credentialed requests by default (cookie-bearing and withCredentials), so authenticated responses can’t leak across SSR sessions. If you relied on caching those, you now have to opt in deliberately.

The New Toys: Features You’ll Actually Use

Signal Forms Are Stable

The experimental warnings are gone. The form()/field() model from v21 is now the blessed, typed, signal-first way to build forms. If you held off adopting them in 21, v22 is the green light.

resource() and httpResource Are Production-Ready

Async data as a signal, with loading and error states built in. Together with stable Signal Forms and OnPush-by-default, the signal-first architecture is no longer “the direction Angular is heading” — it’s just how Angular works.

Selectorless Components

Import a component and use it in the template directly — no string selector indirection, better type safety, easier refactoring.

The Agentic Story Continues

v22 extends the MCP + Skills stack introduced around v21: the CLI’s MCP server plus the skills layer that teaches agents to write signal-first, OnPush-correct code. I’ve written about this in depth: agent-safe component patterns and exhaustive types for hallucination-free agents.

Summary: The Checklist

  1. Node 22+, TypeScript 6.0+ — environment first.
  2. ng update @angular/core@22 @angular/cli@22 and let the Eager migration run.
  3. Audit route param reads (or pin 'emptyOnly' back).
  4. Run the test suite; fix duplicate input bindings the compiler now flags.
  5. Adopt Signal Forms and resource() in new code; peel components off Eager over time.

The official interactive checklist lives at angular.dev/update-guide, and the release announcement at angular.dev/events/v22.


Coming from an older version? Start with Angular 20 to 21: Breaking Changes and How to Fix Them, or see every migration path in the Angular Upgrade Guide.

Written by

Antonio Cárdenas

Google Developer Expert in Angular · 5 years running · Verified GDE profile · Google Developers profile · Highlighted by Angular on X

My technical writing reaches 100,000+ developers in English and Spanish. I've migrated production Angular apps from v8 to v22, and my open-source agentic skills are featured in community catalogs like agentic-awesome-skills.

Verified technical citations

Sources & Official References

  1. [1]Angular Official Update Guide — Interactive Version Migration Checklisthttps://angular.dev/update-guide
  2. [2]Angular v22 Release Event & Official Documentationhttps://angular.dev/events/v22
  3. [3]Angular CLI MCP Server Setup & Zoneless Migrations (ng mcp)https://www.yeou.dev/articles/angular-21-mcp-migrations/
  4. [4]Angular 22 MCP + Skills: Build Agent-Safe Componentshttps://www.yeou.dev/articles/angular-22-agent-safe-components-mcp-skills-setup/

Frequently asked questions

FAQs

When was Angular 22 released?

Angular 22 was released in June 2026, announced around Google I/O. It is a major release that makes ChangeDetectionStrategy.OnPush the default for components, changes route parameter inheritance to 'always', stabilizes Signal Forms and the Resource APIs, and requires Node.js 22.22.3+ (or 24.15+ / 26) and TypeScript 6.0+.

What are the main breaking changes in Angular 22?

The major breaking changes are: (1) components without an explicit changeDetection now default to OnPush instead of check-always — a new ChangeDetectionStrategy.Eager value represents the old behavior; (2) the router's paramsInheritanceStrategy default changed from 'emptyOnly' to 'always'; (3) Node.js 20 and TypeScript 5.9 are no longer supported — the minimums are Node 22.22.3+ and TypeScript 6.0+; (4) chained safe navigation (a?.b.c) now short-circuits per standard JS semantics, and the schematic wraps ambiguous cases in $safeNavigationMigration().

How do I upgrade from Angular 21 to Angular 22?

First make sure you are on Node.js 22.22.3+ (or 24.15+ / 26) and TypeScript 6.0+. Then run ng update @angular/core@22 @angular/cli@22. The automatic migration adds ChangeDetectionStrategy.Eager to your existing components so their change detection behavior does not change. After updating, review any $safeNavigationMigration() wrappers in templates, audit route param reads, and run your test suite.

What Node.js and TypeScript version does Angular 22 require?

Angular 22 supports Node.js ^22.22.3, ^24.15.0 or ^26.0.0 and TypeScript >=6.0.0 <6.1.0, per the official angular.dev version compatibility table. Node.js 20 and TypeScript 5.9 are no longer supported. Check node --version and tsc --version before running ng update.

What is ChangeDetectionStrategy.Eager in Angular 22?

ChangeDetectionStrategy.Eager is the new explicit name for Angular's legacy Default (check-always) change detection strategy. Because Angular 22 makes ChangeDetectionStrategy.OnPush the default for components without an explicit strategy, the ng update migration automatically adds changeDetection: ChangeDetectionStrategy.Eager to existing components so their runtime behavior stays identical.

What is $safeNavigationMigration in Angular 22 and how do I remove it?

When upgrading to Angular 22, the optional chaining operator (?.) in templates aligns with standard JavaScript short-circuiting rules. To prevent subtle runtime changes in chained expressions like user?.profile.name, the migration schematic wraps risky expressions in $safeNavigationMigration(). Search your templates for $safeNavigationMigration, verify whether nullish narrowing or an @if guard handles the expression cleanly, and remove the wrapper.

Are Signal Forms stable in Angular 22?

Yes. Signal Forms shipped as experimental in Angular 21 and became stable in Angular 22, with the experimental warnings removed. The resource() and httpResource APIs are also production-ready in v22, completing the signal-first data story alongside zoneless change detection.

Keep reading

Building something with Angular?

I write about Angular architecture, Signals and the tooling around them — migration guides, real upgrade paths, and the catches most posts skip.

Browse all articlesAbout me

More from the blog