Hello, im new to javascript, typescript, and angular and I have a project for school thats due tomorrow. Im trying my best to keep this app to be modular, and make use of components, services, directives, but surely enough I feel like im drowning in info. I know others have kept this project more simple but im trying to persist doing it "the angular way". I was hoping to get some guidance on how I should be structuring my project, and how I can pass data along to components.
The goal is to have a clickable SVG map that makes an HTTP call to retrieve info from the WorldBank website. Right now I have two components, one for the SVG map, another for displaying the data. I have a directive that highlights each country with the tag assigned, I also have an on click function in that directive to give me the id name of the country, and I have a service made to be injected into the directive.
One that last note, how do I import a service to be used in a directive? I feel like the normal injection I would do for components isn't working.