AngularIntermediate

Angular 22: What's New and Who Should Upgrade

DeveloperHat Team
16 min read

TL;DR

Angular 22.0 shipped June 3, 2026; 22.3.0 landed Nov 18. Signal Forms, Resource API, OnPush and zoneless defaults — what changed, what breaks, who should move.

Angular 22.0.0 shipped on June 3, 2026, and the current patch release is 22.3.0, from November 18, 2026. This is a consolidation release, not a rewrite: the signal-based APIs that arrived as developer previews across v20 and v21 — Signal Forms, the Resource API, Angular Aria — are now stable and production-ready, and the defaults for new code have flipped to OnPush change detection and a zoneless runtime. The release cadence changed with it: Angular now ships one major a year, in June, with a minor roughly every two months, so v22 is the line you will live with until v23 arrives around June 2027. If you run Angular in production, this is the version to standardize on — the question is only when, and what breaks on the way.

The short version: the headline is that signals are no longer the future of Angular, they are the default. Forms, async data, and change detection all have a signal-based answer that is now stable, and the framework's own defaults — OnPush, zoneless, Fetch-backed HttpClient, incremental hydration — line up behind it. The rest is toolchain: TypeScript 6 and Node 22 are the new floor, Vitest replaces Karma for new projects, and the 22.3 minor adds HttpClient.query() and route error boundaries. What follows is what is new, what breaks, and the decision written down so your team can argue with it.

Angular 22 — the signal-first release: what actually changed Signal Forms stable in v22 Resource API resource · rxResource OnPush default for new components Zoneless default since v21 Angular Aria stable, accessible HttpClient Fetch backend default Vitest replaces Karma New floor TypeScript 6 · Node 22 22.0.0 on June 3, 2026 · 22.3.0 on Nov 18, 2026 · one major a year, v23 ~June 2027.

Signal Forms are stable

Signal Forms were experimental in v21; in v22 they are the recommended way to build forms. The model is a plain signal, form() wraps it into a typed field tree, and [formField] binds inputs with two-way synchronization — no FormGroup, no FormControl, no valueChanges subscription to remember to unsubscribe, and no ControlValueAccessor for custom inputs. Validation lives in a schema function passed as the second argument to form(), where each rule binds to a typed path on the model, so a typo in a field name fails the build instead of failing silently at runtime. The Signal Forms guide walks the full API; the shape of it is small enough to show whole:

import { Component, signal } from '@angular/core';
import { email, form, FormField, required } from '@angular/forms/signals';

interface LoginData {
  email: string;
  password: string;
}

@Component({
  selector: 'app-login',
  imports: [FormField],
  template: `
    <form (submit)="onSubmit($event)">
      <label>
        Email
        <input type="email" [formField]="loginForm.email" />
      </label>
      @if (loginForm.email().invalid() && loginForm.email().touched()) {
        <p>{{ loginForm.email().errors()[0]?.message }}</p>
      }
      <label>
        Password
        <input type="password" [formField]="loginForm.password" />
      </label>
      <button type="submit" [disabled]="loginForm().invalid()">Sign in</button>
    </form>
  `,
})
export class LoginComponent {
  loginModel = signal<LoginData>({ email: '', password: '' });

  loginForm = form(this.loginModel, (schema) => {
    required(schema.email, { message: 'Email is required' });
    email(schema.email, { message: 'Enter a valid email address' });
    required(schema.password, { message: 'Password is required' });
  });

  onSubmit(event: Event) {
    event.preventDefault();
    if (loginForm().valid()) {
      // loginModel() holds the submitted values — the signal is the source of truth
    }
  }
}

The honest limit: this does not replace reactive forms overnight. Reactive forms still own the long tail — deeply dynamic form arrays, async validators against a server, and the ControlValueAccessor ecosystem your custom inputs already use. Signal Forms also deliberately do not use the browser's built-in constraint validation to run rules; the built-in validators mirror required, min, max, minLength, and maxLength onto native attributes, but the validation itself runs in Angular. The rule is the same as with every stable-in-v22 API: use it for new forms, leave tested reactive forms alone until you have a reason to touch them.

The Resource API is stable

The other half of the signal story is async data. resource(), rxResource(), and httpResource() are stable in v22 — they turn an asynchronous value into signals for value, error, loading, and status, re-running automatically when a signal they read changes. httpResource() is the most convenient entry point: give it a reactive loader that returns a URL or a request, and it manages the whole lifecycle. The API reference confirms it has been stable since v22.0 and assumes JSON by default, with httpResource.text for other payloads:

import { Component } from '@angular/core';
import { httpResource } from '@angular/common/http';

interface User {
  id: number;
  name: string;
}

@Component({
  selector: 'app-users',
  template: `
    @if (users.isLoading()) {
      <p>Loading users…</p>
    } @else if (users.error()) {
      <p>Could not load users. Try again.</p>
    } @else {
      <ul>
        @for (user of users.value() ?? []; track user.id) {
          <li>{{ user.name }}</li>
        }
      </ul>
    }
  `,
})
export class UsersComponent {
  users = httpResource<User[]>(() => '/api/users');
}

Two details matter in practice. First, dependent resources compose with chain(): if the second resource needs the first one's value, chain() waits for the first to resolve instead of nesting effect() calls by hand. Second, resources support an id option for SSR, so data fetched on the server can be reused during hydration instead of fetched twice. Use httpResource() for standard API calls, resource() when the loader is arbitrary async work, and rxResource() when the source is an existing Observable — the three cover the same shape, and the choice is about where the data comes from, not about style. The old pattern — ngOnInit plus a subscription plus takeUntilDestroyed — still works, and for a one-off fetch in a component you already have, it is not worth rewriting. The Resource API earns its keep when the fetch depends on reactive inputs: a search term, a selected id, a filter signal.

OnPush is the default, and zoneless is the default

The change-detection flip is the one that quietly touches the most code. New components now use ChangeDetectionStrategy.OnPush by default — the old Default strategy was renamed to Eager — so change detection runs only when a component's inputs change or one of its signals updates. That aligns new apps with the zoneless model, which became the default in v21: without zone.js patching every async operation, the framework no longer re-checks the whole tree after every timer, event, or promise. The two defaults together are what make the signal APIs feel fast rather than merely tidy.

import { ChangeDetectionStrategy, Component, computed, signal } from '@angular/core';

@Component({
  selector: 'app-cart-summary',
  // New components in v22 get OnPush by default; the line below is now
  // documentation of the default, not a decision you have to remember.
  changeDetection: ChangeDetectionStrategy.OnPush,
  template: `
    <p>{{ itemCount() }} items — {{ total() | currency }}</p>
    <button (click)="addItem()">Add item</button>
  `,
})
export class CartSummaryComponent {
  prices = signal<number[]>([12, 8, 20]);

  itemCount = computed(() => this.prices().length);
  total = computed(() => this.prices().reduce((sum, p) => sum + p, 0));

  addItem() {
    this.prices.update((list) => [...list, 15]);
  }
}

The breaking edge is real and worth naming plainly: OnPush only re-checks when an input reference changes or a signal notifies. Mutating an object in place — pushing into an array, setting a property on an object passed as an @Input() — no longer updates the view, and the symptom is a UI that silently goes stale instead of an error. The fix is the discipline signals already push you toward: immutable updates (update with a new array, as above) or signals all the way down. If your codebase mutates inputs freely, the upgrade is not just a version bump — it is a review of every component that relies on mutation, and that review is the actual cost of this release. Existing components keep whatever strategy they declare, so the default only bites new components and any component you regenerate; but the moment you adopt signals in an old component, the same rule applies.

Angular 22, layer by layer — signals on top, toolchain underneath Your code — Signal Forms · httpResource · signals + computed Framework — Router · SSR · incremental hydration by default Reactivity — signals · OnPush default · zoneless change detection Toolchain — TypeScript 6 · Vitest · CLI skills for coding agents Runtime — Node 22+ · Fetch backend · esbuild bundling The value is in the top two layers; the bottom two are the upgrade work.

SSR and hydration: incremental by default

Server-side rendering gets its biggest practical improvement in v22: incremental hydration is now the default. Instead of hydrating the whole application at once, Angular hydrates in small parts as they become visible, and the resource caching mentioned above means the client reuses data the server already fetched rather than calling the API a second time. Combined with @defer blocks, which have been the lazy-loading primitive since v17, the shape of a fast Angular app is now: render on the server, stream the HTML, hydrate what the user can see, defer the rest. The version compatibility page is also the place to check the baseline: v22 targets the "widely available" browser Baseline as of May 7, 2026, covering roughly 95% of web users.

The honest limit is that SSR is still a deployment decision, not a flag. You need a server or a prerender step, and hydration bugs — the classic one is a component that renders differently on the server and the client — still show up as flicker or console errors. v22 does not remove that cost; it lowers the runtime cost once you have paid it. If your app is an internal dashboard behind a login, SSR buys you little and the hydration work is pure overhead — the recommendation section below says so outright.

HttpClient runs on Fetch; Vitest replaces Karma

Two smaller defaults change daily life. HttpClient now uses the Fetch API backend by default instead of XMLHttpRequest, and withFetch() is deprecated for removal — if you already called it, the behavior is the same and the call is now redundant; if you never did, your requests quietly moved to Fetch. The practical difference shows up in interceptors that touch XMLHttpRequest-specific behavior and in test setups that mock XHR; most apps will notice nothing.

The test runner changes for new projects: Angular 22 replaces Karma and Jasmine with Vitest as the default. Existing projects keep their Karma setup — nothing is removed from your repo by the upgrade — but new projects scaffold with Vitest, and the migration is a project decision, not something ng update does for you. The same release adds CLI-side AI tooling — Angular Skills and experimental WebMCP support — so coding agents can pull framework guidance from the CLI instead of guessing from stale training data. That is a small thing that compounds: the framework's own docs become the source of truth for the agent, not a blog post from 2023.

What 22.3.0 adds (November 18, 2026)

The 22.0.0 release was June; the minors since then have been steady — 22.1 in late July, 22.2 in late September — and 22.3.0, released November 18, 2026, is the current patch to standardize on. The 22.3.0 release notes are mostly compiler and router work, but four items are worth knowing:

  • HttpClient.query() — a method for HTTP QUERY requests, the safe, body-carrying query method that has been standardizing alongside GET and POST. If you have been smuggling query payloads into POST requests because GET cannot carry a body, this is the correct verb at last.
  • Route error boundaries and redirect handling — the router can now catch errors at a route boundary instead of letting them tear down the whole navigation, and redirect handling is part of the same change. Error pages stop being a global catch-all and become a per-route decision.
  • scrollMargin in @defer viewport options — deferred content can start loading before it scrolls into view, by a margin you choose, instead of exactly at the viewport edge. A small option that removes the visible pop-in on long pages.
  • Compiler checks — unknown property bindings on explicit ng-template elements are now reported, and numeric CSS properties that require units get a check. Both are the kind of error that used to surface as a silent runtime oddity and now fails the build instead.
  • None of these justifies an upgrade on its own. Together they are the reason to patch to 22.3.0 rather than stopping at 22.0.0: the minor releases are where the rough edges of the major get sanded down.

    What breaks before you upgrade

    Angular 22 raises the toolchain floor, and this is the part that bites upgrades. Check these before you move:

  • TypeScript 6 is required. The compatibility table pins v22 to TypeScript >=6.0.0 <6.1.0. TypeScript 5 code mostly compiles, but the compiler is stricter in places — budget a pass over type errors, especially around the new erasable-syntax rules.
  • Node 22 is the minimum. v22 needs Node ^22.22.3 || ^24.15.0 || ^26.0.0. Node 20 is out entirely — check your CI images and Dockerfiles before you check your code. Our Node.js 26 guide covers the runtime side if you are moving both at once.
  • withFetch() is deprecated. It still works, but it is marked for removal. Remove the call when you touch the file; the Fetch backend is the default now.
  • Karma is gone for new projects. Existing Karma setups keep working, but if you scaffold anything new it will be Vitest. Plan the test migration as its own change if your suite is large.
  • ChangeDetectionStrategy.Default is now Eager. The old name still resolves, but it is deprecated. A rename, not a behavior change — unless you relied on the default, in which case the default itself changed under you.
  • Angular 20 reaches end of support at the end of November 2026. If you are still on v20, the clock is not theoretical: security fixes stop. v21 stays in LTS, and v22 is in active support until the v23 major lands around June 2027.
  • Run the upgrade through the official path: ng update @angular/core @angular/cli, one major at a time, following the interactive update guide for your exact from-to pair. The full v22.0.0 release notes list every breaking change; the ones above are the ones that actually bite in practice.

    Upgrade paths, compared

    Your situationMoveEffortWhat you get first
    Angular 20 or olderMove nowA migration project: toolchain floor, OnPush review, test runnerA supported line — your version loses support Nov 28, 2026
    Angular 21 LTSMove on the next windowA version bump, a test run, then adopt signalsStable Signal Forms and Resource API; zoneless already default
    Angular 22.0 – 22.2Patch to 22.3.0A version bump and a test runHttpClient.query(), route error boundaries, compiler checks
    New projectStart on 22.3.0Nothing — it is the scaffold defaultOnPush, zoneless, Vitest, Signal Forms from day one

    Two mechanical notes apply to every row. First, upgrade and adoption are two separate changes: move the version, run the full test suite, and only then start converting forms and data fetching to the signal APIs. Second, check the compatibility table before you plan — the Node and TypeScript floors are the part teams forget, and a CI image on Node 20 will fail the upgrade before a single line of application code is read.

    Decide by what runs production today, not by release notes What runs prod today? check ng version v20 or older support ends Nov 28, 2026 v21 LTS supported, not urgent v22.0 – 22.2 already on the line Move now adopt signals as you go Next window patch first, adopt later Patch to 22.3 a bump + a test run v22 is the line to standardize on until v23 lands ~June 2027.

    Recommendation

    Standardize on Angular 22.3.0 as your next line, on the timetable your current version dictates: now if you are on v20 or older, on the next maintenance window if you are on v21, and as a patch bump if you are already on 22.x. Adopt Signal Forms for new forms and httpResource() for new data fetching as you touch code; leave tested reactive forms and existing subscriptions alone until they need work. Treat the OnPush review — the hunt for in-place mutation — as the real cost of the upgrade, and do it before you adopt signals widely, not after.

    Architecture Decision

    >

    Decision: Standardize on Angular 22.3.0; adopt Signal Forms for new forms and httpResource() for new data fetching as code is touched; run the OnPush mutation review as part of the upgrade; leave tested reactive forms and Karma suites in place until they need work.

    >

    Context: The team runs Angular 20 or 21 in production, builds forms with reactive forms, fetches with HttpClient subscriptions in ngOnInit, and runs Karma/Jasmine tests. Angular 20 loses support at the end of November 2026, and v22 makes the signal APIs stable with OnPush and zoneless as the defaults for new code.

    >

    Options considered: (a) Move to 22.3.0 now and adopt Signal Forms and the Resource API as code is touched. (b) Stay on v21 LTS until its support window narrows. (c) Move to 22.3.0 and convert all forms and data fetching to signals in the same change.

    >

    Why this one: Option (a) buys a supported line, stable signal APIs, and the new defaults with no rewrite and no test-suite migration. Option (b) saves a version bump now and pays it later, when the jump is a bigger one and the v20-style support cliff arrives again. Option (c) bets a working codebase on a wholesale conversion whose payoff is ergonomics, not correctness.

    >

    What it costs you: A version bump and a full test run; the TypeScript 6 and Node 22 toolchain floor; a review of every component that mutates inputs in place; a small learning cost for the Signal Forms schema API; the discipline to adopt the new APIs in new code only, and leave working code alone.

    >

    When to reverse it: If a dependency you need has no Angular 22-compatible release, or if a measured regression appears in staging (hydration errors, change-detection staleness from mutation, or test failures under the new toolchain), hold that app on v21 and revisit at the next patch release. The reversal trigger is a measured failure, not discomfort with the new defaults.

    When NOT to upgrade yet

    Do not move an app to Angular 22 this week if it depends on a library with no v22-compatible release — check the library's own compatibility statement first, and hold that app on v21 while the vendor catches up. Do not upgrade in the same change as a framework migration or a major refactor; the version move is one change, and it deserves its own verification. Do not convert every form to Signal Forms because the API is stable — the stable label means it is safe to adopt, not that existing forms are suddenly wrong. And do not turn on SSR for an app that does not need it: an internal dashboard behind a login gains nothing from server rendering and pays the hydration cost for nothing. The LTS exists precisely so you do not have to chase every release; Angular 22 is the release to land on, and landing on it calmly is the whole point.

    For the bigger picture on how this frontend fits the services behind it, our hexagonal architecture guide covers the same signal-driven discipline on the backend — ports and adapters in Spring Boot, Node, and Python — and our Java 25 guide shows the same LTS thinking on the JVM side, where the runtime and the framework move together.

    Why This Matters

    Understanding the business and technical context helps you make informed decisions rather than blindly following patterns.

    Trade-offs to Consider

    Every architectural decision involves trade-offs. Consider your specific requirements, team expertise, and scale when evaluating options.

    When NOT to Use This

    Knowing when a solution doesn't apply is as valuable as knowing when it does. Consider alternatives for your specific situation.

    Decision Framework

    Use this framework to evaluate whether this approach is right for your use case based on your specific constraints and requirements.

    Share this articleShare on XShare on LinkedIn

    Keep the decision frameworks coming

    One practical architecture guide a week — patterns, trade-offs, and when not to use them. No spam, unsubscribe anytime.