← All recipes
Moderne licensed

Migrate @Output() to signal-based output()

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

Converts @Output() decorated properties using EventEmitter in Angular classes to signal-based output() declarations. For example, @Output() clicked = new EventEmitter<void>() becomes clicked = output<void>().

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-output-to-signal

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

mod config recipes npm install @openrewrite/recipes-angular