← All recipes
Moderne licensed

Find NgClass usage

Recipe IDorg.openrewrite.angular.search.find-ng-class-usageArtifact@openrewrite/recipes-angular

Finds imports of NgClass from @angular/common. The ngClass directive is soft deprecated in Angular 21 in favor of native [class.*] bindings.

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-ng-class-usage

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

mod config recipes npm install @openrewrite/recipes-angular