Home > Software design >  Router link not working in anchor tag when use dynamic url
Router link not working in anchor tag when use dynamic url

Time:05-20

<a roterLink="/someurl/ str "> text </a>

here routerLink is not working in angular 9

CodePudding user response:

try like this:

<a routerLink="/someurl/{{str}}">Text</a> 

I hope it helps!

CodePudding user response:

You can try it also

<a routerLink="/edit/{{name}}" [queryParams]="{id: '1'}">Click Here</a>
  • Related