← All recipes
Moderne licensed

Upgrade to Angular 22

Recipe IDorg.openrewrite.angular.UpgradeToAngular22Artifact@openrewrite/recipes-angular

Migrates Angular 21.x applications to Angular 22. This includes running the Angular 21 migration first, making the pre-existing change detection, HttpClient backend, incremental hydration, strict template, and safe navigation diagnostic defaults explicit, replacing APIs removed in Angular 22, flagging the router behavior changes for review, and upgrading TypeScript to 6.0.x.

Composite recipeProprietary

Usage

This recipe has no required configuration options. You’ll need the Moderne CLI configured before running the command below.

mod run . --recipe org.openrewrite.angular.UpgradeToAngular22

If the recipe isn’t available locally, install it with:

mod config recipes npm install @openrewrite/recipes-angular

Definition

This recipe runs the following recipes in order.