I have a menu on the left side of the page and there has to be another menu on the left which is a submenu of the selected menu. For this to work i've created a non-terminal route '/section/...' and created a component with another router outlet in it. The component in "section" folder is also a router component. I had to use links like this to make it work (the "./" had to be added here for the links to be specific to this subcomponent):
<a [routerLink]=" ['./Index'] ">Index</a>
<a [routerLink]=" ['./Test'] ">Test</a>
Everything works perfectly, but i would like to turn those hrefs that are currently my submenu into another separate component. I don't want to hardcode my menu in every section, i'd rather just place a tag and somehow specify the links to be added to that submenu. The problem here is i'm stuck and don't know how i could pass those links into the submenu component so that they would still point to the correct locations. So what would be the best way to create such a submenu component and pass a list of links to it?