#New to Angular/Class Project

3 messages · Page 1 of 1 (latest)

stray turtle
#

My “JavaScript Programming” course is actually making me use Angular instead, to make an interactive world map.

I have set up the project, up to the point of creating a map component, downloading the map.svg, and have the url for the API they want me to use. Issue is… I have no idea how to implement all of this to include the map on the html page and then all of the typescript stuff.

If anyone has tips/tricks/guidance, I’d greatly appreciate it.

worldly acorn
#

To display an SVG file, you need <img src="/assets/map.svg" alt="The map of the world" />. The remaining of your question is too vague. Maybe you should do the tour of heroes tutorial: https://angular.io/tutorial/tour-of-heroes

stray turtle
#

Ahhh. Okay, so even if it’s .svg, still works the same as any other image.

Ill be taking a look at that tutorial. Thank you.