Migrate @Input() to signal-based input()
Recipe ID
org.openrewrite.angular.migration.migrate-input-to-signalArtifact@openrewrite/recipes-angularConverts @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-signalIf the recipe isn’t available locally, install it with:
mod config recipes npm install @openrewrite/recipes-angular