← All recipes
Moderne licensed

Rename afterRender to afterEveryRender

Recipe IDorg.openrewrite.angular.migration.rename-after-renderArtifact@openrewrite/recipes-angular

Renames afterRender to afterEveryRender in imports and usages. The afterRender function was renamed to afterEveryRender in Angular 20, and Angular provides no migration schematic for this change.

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-after-render

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

mod config recipes npm install @openrewrite/recipes-angular