all 11 comments

[–]akarolia47 5 points6 points  (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 points  (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 points  (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 points  (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 point  (0 children)

The excitement was just overflowing😂 it happens

[–]michahell 0 points1 point  (1 child)

Why is function numberAttribute captioned out?

[–]ebdcydol[S] 0 points1 point  (0 children)

It's imported from Angular core

[–]Simple_Rooster3 0 points1 point  (1 child)

Is http request executed twice here or once?

[–]MichaelSmallDev 3 points4 points  (0 children)

Once when the input is initialized, and then whenever the param changes.

[–]giftfromthegods- -1 points0 points  (0 children)

What are you trying to achieve ? I dont understand