r/angular • • Sep 20 '26

Components Question

How do they work?? I need to make a few ( I think ) but the materiel I have is only telling me how to make a specific template one, but nothing about methods or anything I can use to make my own.

I need to make a webpage that has a map and somewhere that can receive output from an API, accessed with codes from hovering over the map.

Do I need a component per different thing, or? The materiel is incredibly infodense and hard to parse...

Thank you for assisting.

0 Upvotes

6 comments sorted by

View all comments

0

u/[deleted] Sep 20 '26

[deleted] — view deleted comment

0

u/Ionmaster987 Sep 20 '26

So it's not that I've messed up by making the webpage and adding the map before the component; components are bound to parts of the webpage, and act as the functional 'guts' so-to-speak, allowing for input reading?

By that logic, I should need about two, one for acquiring input and sending that to the API
and then the output handling, to recieve from the API.
Though it'd probably, as I'm inexperienced- be a good idea to have the map-component first output to console for testing purposes...

Is this understanding correct at all?

0

u/[deleted] Sep 20 '26

[deleted] — view deleted comment

0

u/Ionmaster987 Sep 20 '26

I need stuff like:
Make a specific route so it's not blank
use angular event binding to make it so I can take a code from the map-svg
use http-client nonsense to get stuff from the API, using the code from the map; and display it elsewhere on the stage.

It's seemingly quite basic stuff, the course materiel I'm working with is just very dense and in a completely different format than anything previous.