Migrate constructor injection to inject()
ProprietaryConverts 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-injectmod run . --recipe= org. openrewrite. angular. migration. migrate-constructor-to-injectInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.