I have an application that uses a typescript file for setting up links and within the template I use ngFor
to interpolate through the links and build a navigation b
In Angular you can compose URL with respect of any path; [routerLink]
provide the facility to provide string token or variables to make final path
[routerLink]="['/', var, 'str']"
=/var/str
{{ link.text }}
Angular official reference for RouterLink : https://angular.io/api/router/RouterLink