Angular 2: How to provide interpolation with [routerLink]
This router link worked for me [routerLink]="['/edit', element.ID]"
I used it in the following:
<a href="javascript: void(0);" [routerLink]="['/edit', element.ID]"
routerLinkActive="router-link-active" > {{ element.RequesterName }}</a>
Thanks!
try this
<li class ="Some class">
<a [routerLink]="['user', idVariable]">Link </a>
</li>