← All recipes
Moderne licensed

Replace RouterLinkWithHref with RouterLink

Recipe IDorg.openrewrite.angular.migration.replace-router-link-with-hrefArtifact@openrewrite/recipes-angular

Replaces RouterLinkWithHref with RouterLink in imports and usages. RouterLinkWithHref was merged into RouterLink in Angular 16.

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.replace-router-link-with-href

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

mod config recipes npm install @openrewrite/recipes-angular