I have the routing defined in the routing.ts file this way.
const routesapp: Routes= [ {path:'user/id', component:UserComponent} ]; export const:routing ModuleWithProviders = RouterModule.forRoot(routesapp, {useHash:true});
and in HTML
<li class ="Some class"> <a href= "#/user/{{id}}"> Link </a> </li>
How do I convert this to work with [routerLink]? From previous posts, I learned that we cannot add interpolation using [routerLink], that is, [routerLink] = ['user / {{id}}']
I want to add interpolation only in HTML, and I cannot add it to the routing file. Also, how to override useHash routing file in HTML?
source share