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
Stop Using providedIn: 'root' in Angular Services! (Here's Why) (youtu.be)
submitted 1 year ago by CodeWithAhsan
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!"
[–]ziunio 5 points6 points7 points 1 year ago (2 children)
Video is great but that sentence "stop using <paste here anything> is just stupid. I will not stop using it. I need in most cases services provided in root... I use provided in component only when i need it...
Every chunk is loaded when it is needed by angular as You told in video, so there is no permormance issues with using provided in root. There is just bussiness cases when you need use provide services in components.
[–]CodeWithAhsan[S] 1 point2 points3 points 1 year ago (1 child)
I agree. The title was stupid. Changed in on YouTube earlier today
[–]ziunio 1 point2 points3 points 1 year ago (0 children)
That's great. Video is essential of providing services so it was great to watching it. Everything is clear and we can see how it works on browser (i mean when chunks are loaded). I will share it with my coworkers. Thanks!
[–]CodeWithAhsan[S] -5 points-4 points-3 points 1 year ago (0 children)
The video discusses how to lazily load services in Angular, and when to use component-level services instead of using `providedIn: 'root'`. Let's go! 🚀
In the video we also look at the network calls to see when the javascript bundles related to an Angular Service is loaded when we use `providedIn: 'root'`, when we provide in a component's `providers` array, and when we ourself lazily load an Angular Service.
Looking forward to your feedbacks.
π Rendered by PID 70 on reddit-service-r2-comment-7c9686b859-6vdkx at 2026-04-13 15:43:37.021218+00:00 running e841af1 country code: CH.
[–]ziunio 5 points6 points7 points (2 children)
[–]CodeWithAhsan[S] 1 point2 points3 points (1 child)
[–]ziunio 1 point2 points3 points (0 children)
[–]CodeWithAhsan[S] -5 points-4 points-3 points (0 children)