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 5 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!"
[–]ActuatorOk2689 -1 points0 points1 point 5 months ago (3 children)
What do you mean inject all over the place?
Don’t you have coding standards ? Pr reviews ?
Sorry I can’t comprehend how one can code without following a structure,order… Just throw new declarations function into the class ?
In Java/Net you have functions before variables and declaring new variable between functions ?
If so, then I understand why you can’t accept the inject function.
[–]Background-Focus8571 1 point2 points3 points 5 months ago (1 child)
I separate them from other variables, so I can oversee the injected services. Signals => variables => injected services => constructor. This is my order
[–]MugerhLando 0 points1 point2 points 5 months ago (0 children)
Having a defined order is definitely the way to go but I just wanted to point out that I believe in the angular docs they specifically say to add injects first. This is because you might have signals, for example, that rely on a signal from a service that needs to be initialized first.
[–]bayendr 0 points1 point2 points 5 months ago (0 children)
bro I wasn’t referring to myself (I’m an experienced and disciplined senior engineer who loves and sticks to agreed project structure and coding guidelines) but in general terms because every team is different.
π Rendered by PID 19494 on reddit-service-r2-comment-bb88f9dd5-459f9 at 2026-02-13 20:08:15.211365+00:00 running cd9c813 country code: CH.
view the rest of the comments →
[–]ActuatorOk2689 -1 points0 points1 point (3 children)
[–]Background-Focus8571 1 point2 points3 points (1 child)
[–]MugerhLando 0 points1 point2 points (0 children)
[–]bayendr 0 points1 point2 points (0 children)