← All recipes
Moderne licensed

Find router configuration relying on the default paramsInheritanceStrategy

Recipe IDorg.openrewrite.angular.search.find-implicit-params-inheritanceArtifact@openrewrite/recipes-angular

Finds provideRouter() and RouterModule.forRoot() calls that do not set paramsInheritanceStrategy. Angular 22 changed the default from emptyOnly to always, so route parameters and data are now inherited from all parent routes.

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.search.find-implicit-params-inheritance

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

mod config recipes npm install @openrewrite/recipes-angular