← All recipes
Moderne licensed

Migrate @Input() to signal-based input()

Recipe IDorg.openrewrite.angular.migration.migrate-input-to-signalArtifact@openrewrite/recipes-angular

Converts @Input() decorated properties in Angular classes to signal-based input() declarations. For example, @Input() name: string becomes name = input<string>(), and @Input({ required: true }) name!: string becomes name = input.required<string>().

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.migrate-input-to-signal

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

mod config recipes npm install @openrewrite/recipes-angular