-
Notifications
You must be signed in to change notification settings - Fork 26.6k
Closed
Labels
area: migrationsIssues related to `ng update`/`ng generate` migrationsIssues related to `ng update`/`ng generate` migrations
Milestone
Description
Which @angular/* package(s) are relevant/related to the feature request?
upgrade
Description
Hi Angular team :)
First of all, thanks for the hard work and the wonderful new features (special mentions to signals and input-route binding).
Taking from what was said in the last Building Games and Q/A, I think it could be very great to add a schematics to migrate from constructor-based dependency injection to the new inject()
function.
Angular team already did something similar in v16 for Standalone APIs and I personally really appreciated what was done.
Proposed solution
Add some clarification on the official documentation to expose advantages of inject()
function usage
Alternatives considered
Add a schematics to simplify migration from constructor-based injection.
imaksp, nifiro, ampmonteiro, mparpaillon, mouadennaciri and 18 morewartab, freshgum-bubbles, maskalek and Hafnernuss
Metadata
Metadata
Assignees
Labels
area: migrationsIssues related to `ng update`/`ng generate` migrationsIssues related to `ng update`/`ng generate` migrations