{ "@context": "https://schema.org", "@type": "BlogPosting", "headline": "Angular v21 vs v22: What Changed and What Breaks When You Upgrade", "datePublished": "2026-08-06", "dateModified": "2026-08-06", "author": { "@type": "Person", "name": "Yash Thakkar", "worksFor": { "@type": "Organization", "name": "Avidclan Technologies" } }, "publisher": { "@type": "Organization", "name": "Avidclan Technologies", "url": "https://www.avidclan.com" }, "mainEntityOfPage": { "@type": "WebPage", "@id": "https://www.avidclan.com/blog/angular-21-vs-22/" } }
WhatsApp Icon
Category:
|
Posted On:
|
Modified On:
|
Author
by

Angular v22, released on June 3, 2026, makes OnPush the default change-detection strategy for newly generated components and graduates Signal Forms to stable — the two changes most likely to affect a project upgrading from Angular v21 (November 19, 2025). It also requires TypeScript 6, drops Node.js 20, and makes incremental hydration the default.


Key takeaways

  1. Angular v21 shipped on November 19, 2025 and Angular v22 shipped on June 3, 2026, keeping the framework's roughly six-month major-release cadence.
  2. The headline change in Angular v22 is that OnPush becomes the default change-detection strategy for newly generated components; the v22 migration rewrites your existing components to ChangeDetectionStrategy.Eager (an alias for the old always-check default) so they keep working.
  3. Signal Forms were experimental in Angular v21 and are stable in Angular v22 under @angular/forms/signals.
  4. Angular v22 requires TypeScript 6 and drops support for Node.js 20; Node.js 26 is supported.
  5. The resource(), rxResource() and httpResource() APIs are stable in Angular v22, and HttpClient now uses the Fetch API by default.
  6. Incremental hydration is the default hydration strategy in Angular v22, and zoneless is the standard for new applications from Angular v21 onward.


If you want to know more about Angular's Past Releases you can read these articles:

  1. Angular 20 vs Angular 21
  2. Angular 19 vs Angular 20


Angular 21 vs 22 at a glance


The table below compares Angular v21 and Angular v22 on the areas that decide most upgrades. The pattern is consistent: features that were experimental or opt-in in Angular v21 became defaults or stable APIs in Angular v22.


 Area Angular v21 (November 2025) Angular v22 (June 3, 2026)
 Default change detection Always-check (the historical default) OnPush for newly generated components; existing components migrated to Eager
 Signal Forms Experimental, opt-in Stable (@angular/forms/signals)
 resource() / httpResource() Experimental Stable
 HttpClient transport XMLHttpRequest by default Fetch API by default
 Hydration default Full hydration; incremental opt-in Incremental hydration is the default
 Angular Aria Developer preview Stable (@angular/aria)
 Zoneless Standard for new apps Standard for new apps
 TypeScript TypeScript 5.9 TypeScript 6 required


What Angular v21 introduced

Angular v21, released on November 19, 2025, was the release that normalised the signal-based, zoneless direction. Zone.js is no longer part of a new Angular application, and zoneless change detection became the standard rather than an experiment.

Angular v21 also shipped the first public version of Signal Forms, a forms API built on signals, as an experimental opt-in surface while the team gathered feedback. Alongside it, Angular v21 introduced Angular Aria as a developer preview — a set of accessible UI patterns and components — and the Angular MCP Server, which exposes framework tooling to AI coding agents. New projects started shipping with a bundled Tailwind configuration.

The important thing for an upgrade decision is that most of Angular v21 flagship additions were previews. They told you where Angular was heading; Angular v22 is where several of them become the path of least resistance.


What changed in Angular v22

Angular v22 turned Angular v21 previews into defaults. Four changes carry the most weight for existing applications: the OnPush default, stable Signal Forms, stable resource APIs with a Fetch-based HttpClient, and incremental hydration by default.


OnPush is now the default change-detection strategy

This is the change to understand most carefully. In Angular v22, newly generated components use OnPush change detection by default, and the historical always-check strategy now has an explicit name: ChangeDetectionStrategy.Eager (added in v21.2 as an alias for the old Default). When you run the upgrade, Angular migration rewrites your existing components that used the old default to Eager, so they keep behaving exactly as before.

That means the upgrade itself does not silently switch your current components to OnPush. The behaviour change bites in two places: components you generate after upgrading, which are now OnPush, and any code that mutates an object in place and expects an OnPush component to refresh. In an OnPush component, drive updates through a signal, an observable with the async pipe, or an explicit markForCheck(). If a specific component is not ready for OnPush, set it to Eager explicitly while you migrate it.


import { ChangeDetectionStrategy, Component } from '@angular/core';
 
// Angular v22: OnPush is applied automatically.
// Opt a not-yet-migrated component back into always-check behaviour:
@Component({
 selector: 'app-legacy-widget',
 changeDetection: ChangeDetectionStrategy.Eager, // was .Default
 template: `<p>{{ label }}</p>`,
})
export class LegacyWidgetComponent {
 label = 'value updated by direct mutation';
}

Because the migration preserves your existing components as Eager, a 21-to-22 upgrade is lower-risk than it first sounds. Still run a regression pass: the migration cannot always reason about components whose change-detection strategy is set dynamically or inside a third-party library.


Signal Forms are stable

Signal Forms graduated from experimental in Angular v21 to stable in Angular v22, published under @angular/forms/signals. They model form state as signals, which lines the forms system up with the rest of Angular reactivity instead of sitting beside it as a separate observable-based world.

Stable does not mean mandatory. Reactive Forms and Template-Driven Forms remain supported, and Signal Forms are designed to interoperate with Reactive Forms rather than force a rewrite. For a large existing codebase, the realistic move is to build new forms with Signal Forms and migrate existing ones only where the reactivity payoff is real.


Stable resource APIs and a Fetch-based HttpClient

The resource(), rxResource() and httpResource() APIs, experimental in Angular v21, are stable in Angular v22. They give you a signal-native way to load asynchronous data, including loading and error state, without wiring an observable pipeline by hand for every request.

In the same release, HttpClient uses the Fetch API under the hood by default instead of XMLHttpRequest. Most applications will not notice, but anything that depended on XHR-specific behaviour — certain progress events or interceptor assumptions — should be checked.

import { provideHttpClient, withFetch } from '@angular/common/http';
 
// Angular v22: the Fetch transport is the default.
// withFetch() is effectively a no-op now and is being deprecated.
export const appConfig = {
 providers: [provideHttpClient(withFetch())],
};


Incremental hydration is the default

For server-rendered Angular applications, incremental hydration is the default hydration strategy in Angular v22. Instead of hydrating the whole page up front, Angular hydrates regions as they become relevant, which reduces the JavaScript executed on initial load. The explicit withIncrementalHydration() provider is deprecated because it is now the standard behaviour.


Angular Aria is stable

Angular Aria, the accessible component and pattern library that arrived as a developer preview in Angular v21, is stable in Angular v22 under @angular/aria. If you were waiting for a stable release before adopting Angular own accessibility primitives, Angular v22 is that release.


Breaking changes to check before you upgrade

Most 21-to-22 friction comes from three places: the toolchain requirements, the OnPush default, and a handful of deprecations. Work through this list before running the update.


 What to check Why it matters in Angular v22
 TypeScript version Angular v22 requires TypeScript 6; TypeScript 5.9 is no longer supported.
 Node.js version Node.js 20 support is dropped. Move CI and local environments to a supported line such as Node.js 26.
 Change-detection assumptions OnPush is the default for newly generated components; the migration marks existing ones Eager. New components and any dynamic change-detection code need a signal, async pipe, or markForCheck().
 HttpClient behaviour Fetch is the default transport. Re-check interceptors and progress-event handling.
 Hydration providers withIncrementalHydration() is deprecated; incremental hydration is the default.


Performance: what actually gets faster

Angular v22 performance story is architectural rather than a single benchmark number. Making OnPush the default means the framework does less change-detection work by default, because components check only when their inputs or signals change instead of on every event across the tree. That is a structural reduction in work, not a micro-optimisation.

Incremental hydration reduces the JavaScript executed when a server-rendered page first loads, because Angular hydrates regions on demand rather than all at once. Combined with zoneless applications shedding Zone.js entirely, the direction of Angular v22 is less framework overhead between a user event and a rendered result. The honest caveat: the size of the win depends on how your app was written. An app already using OnPush and signals will see less change from the upgrade than one that leaned on the old defaults.


Should you upgrade from Angular v21 to v22?

For most teams already on Angular v21, upgrading to Angular v22 is worth doing, but it is not a same-day version bump. The OnPush default alone means you should budget a regression pass rather than treat it as a routine patch.


In the Angular upgrades our front-end team runs, the migration itself is rarely the problem — it converts existing components to Eager and they keep working. The regressions show up afterwards, in new OnPush components and in older components with dynamic change-detection logic the migration could not safely convert. The pragmatic path is to upgrade the toolchain first, run the migration, then work through the components left on Eager in batches, moving them to signals rather than treating Eager as a permanent setting.


Two cases justify waiting. If you are mid-delivery on a release with a hard deadline, an Angular major upgrade is not the thing to slot in the week before launch. And if your app still depends on Node.js 20 in an environment you cannot change yet, resolve that first, because Angular v22 will not run on it.


How to upgrade Angular v21 to v22

  1. Move your toolchain to TypeScript 6 and a supported Node.js line (such as Node.js 26) before touching Angular itself.
  2. Run ng update @angular/core @angular/cli and let Angular schematics apply the automated migrations, including the OnPush migration.
  3. Run your full test suite and click through the app, watching specifically for views that stop updating — the OnPush default is the usual cause.
  4. Fix regressions by driving updates through signals or the async pipe; use ChangeDetectionStrategy.Eager only as a temporary bridge.
  5. Re-check HttpClient interceptors and any code that assumed XMLHttpRequest, now that Fetch is the default transport.
  6. Remove deprecated calls such as withIncrementalHydration() once you confirm the defaults cover your case.

Angular official update guide walks through the version-specific steps, and the automated migrations do most of the mechanical work. The judgement calls are yours: which components to migrate off Eager, and when.


Work with us

If you are planning an Angular v21 to v22 upgrade and want the OnPush migration and regression pass handled without stalling your roadmap, our Angular development team does this work for client apps, and you can hire Angular developers to run the migration as an extension of your own team.

Don’t miss out – share this now!
Link copied!
Author
Rushil Bhuptani

"Rushil is a dynamic Project Orchestrator passionate about driving successful software development projects. His enriched 11 years of experience and extensive knowledge spans NodeJS, ReactJS, PHP & frameworks, PgSQL, Docker, version control, and testing/debugging."

FREQUENTLY ASKED QUESTIONS (FAQs)

To revolutionize your business with digital innovation. Let's connect!

Require a solution to your software problems?

Want to get in touch?

Have an idea? Do you need some help with it? Avidclan Technologies would love to help you! Kindly click on ‘Contact Us’ to reach us and share your query.

© 2026 Avidclan Technologies, All Rights Reserved.