← All recipes
Moderne licensed

Rename ChangeDetectionStrategy.Default to ChangeDetectionStrategy.Eager

Recipe IDorg.openrewrite.angular.migration.rename-default-change-detectionArtifact@openrewrite/recipes-angular

Renames the deprecated ChangeDetectionStrategy.Default enum member to its Angular 22 replacement ChangeDetectionStrategy.Eager. Both members have the same value, so the change is behavior preserving.

Single 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.migration.rename-default-change-detection

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

mod config recipes npm install @openrewrite/recipes-angular