Migrate constructor injection to inject()

Proprietary

Converts constructor parameter properties in Angular classes to field declarations using the inject() function. For example, constructor(private svc: MyService) {} becomes private svc = inject(MyService);.

org.openrewrite.angular.migration.migrate-constructor-to-inject
mod run . --recipe=org.openrewrite.angular.migration.migrate-constructor-to-inject

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.