Replace initialNavigation option values
Recipe ID
org.openrewrite.angular.migration.replace-initial-navigationArtifact@openrewrite/recipes-angularReplaces deprecated initialNavigation router option values: 'legacy_enabled' and true become 'enabledBlocking', 'legacy_disabled' and false become 'disabled', and 'enabled' becomes 'enabledNonBlocking'. The legacy values were removed in Angular 11; 'enabled' was renamed in Angular 14.
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-initial-navigationIf the recipe isn’t available locally, install it with:
mod config recipes npm install @openrewrite/recipes-angular