← All recipes
Moderne licensed

Find undecorated classes with Angular features

Recipe IDorg.openrewrite.angular.search.find-undecorated-angular-classArtifact@openrewrite/recipes-angular

Finds classes that use Angular member decorators (@Input, @Output, @ViewChild, etc.) or implement lifecycle hooks (ngOnInit, ngOnDestroy, etc.) but lack a class-level Angular decorator. Angular 9 with Ivy requires all classes using Angular features to have an explicit decorator.

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-undecorated-angular-class

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

mod config recipes npm install @openrewrite/recipes-angular