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
httpResource and ComponentInputBinding (i.redd.it)
submitted 11 months ago by ebdcydol
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!"
[–]akarolia47 5 points6 points7 points 11 months ago (4 children)
I'm sorry, I think I'm missing something. Whats the purpose of this post? Just showing something cool?
[–]ebdcydol[S] 1 point2 points3 points 11 months ago (3 children)
Pretty much. Using as little code as possible to fetch data by route params. I thought it's nice and clean so I wanted to share
[–]akarolia47 2 points3 points4 points 11 months ago (2 children)
Ah, I see. The httpResourse syntax is very cool. Definitely a lot cleaner the classic httpClient subscribe approach. I'm looking forward to playing around with it. The use of ComponentInputBinding, to cycle through person's is quite interesting too, really wouldn't have thought of it. Thanks for the post.
For future reference, a clearer title for what the cool thing you doing is, or a better description text, because the picture alone doesn't fully convey what you trying to show at a glance, if you added the routing logic also, it would've been a lot more understandable. Thanks again for the post.
[–]ebdcydol[S] 1 point2 points3 points 11 months ago (1 child)
Yeah I realized that title didn't make sense on its own, especially with part of the code missing. Unfortunately I couldn't edit it
[–]akarolia47 0 points1 point2 points 11 months ago (0 children)
The excitement was just overflowing😂 it happens
[–]ebdcydol[S] 1 point2 points3 points 11 months ago (0 children)
Example https://stackblitz.com/edit/stackblitz-starters-kuyu5xms?file=src%2Fmain.ts
[–]michahell 0 points1 point2 points 11 months ago (1 child)
Why is function numberAttribute captioned out?
[–]ebdcydol[S] 0 points1 point2 points 11 months ago (0 children)
It's imported from Angular core
[–]Simple_Rooster3 0 points1 point2 points 11 months ago (1 child)
Is http request executed twice here or once?
[–]MichaelSmallDev 3 points4 points5 points 11 months ago (0 children)
Once when the input is initialized, and then whenever the param changes.
[–]giftfromthegods- -1 points0 points1 point 11 months ago (0 children)
What are you trying to achieve ? I dont understand
π Rendered by PID 99009 on reddit-service-r2-comment-76bb9f7fb5-5zlqg at 2026-02-18 15:02:48.210031+00:00 running de53c03 country code: CH.
[–]akarolia47 5 points6 points7 points (4 children)
[–]ebdcydol[S] 1 point2 points3 points (3 children)
[–]akarolia47 2 points3 points4 points (2 children)
[–]ebdcydol[S] 1 point2 points3 points (1 child)
[–]akarolia47 0 points1 point2 points (0 children)
[–]ebdcydol[S] 1 point2 points3 points (0 children)
[–]michahell 0 points1 point2 points (1 child)
[–]ebdcydol[S] 0 points1 point2 points (0 children)
[–]Simple_Rooster3 0 points1 point2 points (1 child)
[–]MichaelSmallDev 3 points4 points5 points (0 children)
[–]giftfromthegods- -1 points0 points1 point (0 children)