← All recipes
Moderne licensed

Replace ViewEncapsulation.Native with ViewEncapsulation.ShadowDom

Recipe IDorg.openrewrite.angular.migration.replace-view-encapsulation-nativeArtifact@openrewrite/recipes-angular

Replaces ViewEncapsulation.Native with ViewEncapsulation.ShadowDom. ViewEncapsulation.Native was deprecated in Angular 6 and removed in Angular 11.

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-view-encapsulation-native

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

mod config recipes npm install @openrewrite/recipes-angular