Find router configuration relying on the default paramsInheritanceStrategy
Recipe ID
org.openrewrite.angular.search.find-implicit-params-inheritanceArtifact@openrewrite/recipes-angularFinds 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-inheritanceIf the recipe isn’t available locally, install it with:
mod config recipes npm install @openrewrite/recipes-angular