← All recipes
Moderne licensed

Remove static: false from view queries

Recipe IDorg.openrewrite.angular.migration.remove-static-falseArtifact@openrewrite/recipes-angular

Removes static: false from @ViewChild, @ContentChild, @ViewChildren, and @ContentChildren decorators. In Angular 9 with Ivy, static: false became the default behavior, making the explicit option unnecessary.

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.remove-static-false

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

mod config recipes npm install @openrewrite/recipes-angular