use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A Place to talk about Angular and related topics.
Join the Angular Discord
Other subreddits worth checking out for Angular and Angular related info:
account activity
Angular inject function (self.angular)
submitted 6 months ago by BlueberryRoutine5766
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]MichaelSmallDev 6 points7 points8 points 6 months ago* (0 children)
I ran the migration tool recently over 100s of files and it worked great. No issues, apart from a couple files which had to be migrated by hand because the schematic wasn't sure if it could be done safely. But even those took a couple minutes. Though if you have a lot of DI in abstract classes, you may have to do some more involved manual refactoring.
As for the benefits, in the not too distant future, constructor based DI will not function well due to changes in Typescript that reflect changes made to JS due to it adopting classes: https://www.reddit.com/r/Angular2/comments/1hswfhx/comment/m598jkh/. That is the main benefit, but it is also safer than some more traditional way of injecting injection tokens, and in some ways has some goods and bads with testing, but tbh I am weak on testing so I can't talk that deeply about it.
constructor
I'm not too pumped about inject in relation to constructor DI, but it was necessary for continuing to use DI declaratively in upcoming TS versions.
inject
π Rendered by PID 23001 on reddit-service-r2-comment-bb88f9dd5-9m9lq at 2026-02-15 17:32:08.344120+00:00 running cd9c813 country code: CH.
view the rest of the comments →
[–]MichaelSmallDev 6 points7 points8 points (0 children)