← All recipes
Moderne licensed

Move DOCUMENT import to @angular/core

Recipe IDorg.openrewrite.angular.migration.move-document-importArtifact@openrewrite/recipes-angular

Moves the DOCUMENT import from older Angular modules to @angular/core.

Composite 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.move-document-import

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

mod config recipes npm install @openrewrite/recipes-angular

Definition

This recipe runs the following recipes in order.