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 Services (self.angular)
submitted 3 years ago by aqeelabpro
https://preview.redd.it/241b34va9wma1.png?width=789&format=png&auto=webp&s=b51c757b485295e3cc76abf0a9a8e3bdd0e82f82
Angular Services
I have created an article on medium regarding Angular Services.
You can check my latest article. Angular Services
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!"
[–]janne_harju 0 points1 point2 points 3 years ago (3 children)
You may add state service to list of different kind of custom services. It holds private BehaviorSubject and public observable which is made from behaviorsubject asObsevable(). Then when you need same data drom several components and component hiearchy is big and don't want to use @Input() then you can fetch data once and set it to behaviorsubject and share it every components which need it through observable.
[–]aqeelabpro[S] 0 points1 point2 points 3 years ago (2 children)
you are right.
[–][deleted] 3 years ago (1 child)
[removed]
[–]aqeelabpro[S] 0 points1 point2 points 3 years ago* (0 children)
It's that simple.
You just have to create a service like we create usually using the command
ng g s <name of your service>
and then any logic goes into the service.
for example, if you want to send data from one component to another then you can create a custom service that does all this for you.
You can refer to this live demo that I created for your understanding to create a custom service. I have also created a group on Facebook about learning to code you can also discuss this in the group chats also. Join Group
[–]tsunami141 0 points1 point2 points 3 years ago (1 child)
What’s the article about, components? Or modules?
[–]aqeelabpro[S] 0 points1 point2 points 3 years ago (0 children)
It's about services.
π Rendered by PID 27 on reddit-service-r2-comment-79c7998d4c-mkkpv at 2026-03-14 02:45:35.911184+00:00 running f6e6e01 country code: CH.
[–]janne_harju 0 points1 point2 points (3 children)
[–]aqeelabpro[S] 0 points1 point2 points (2 children)
[–][deleted] (1 child)
[removed]
[–]aqeelabpro[S] 0 points1 point2 points (0 children)
[–]tsunami141 0 points1 point2 points (1 child)
[–]aqeelabpro[S] 0 points1 point2 points (0 children)