Route Parameters in Links in Angular
If we have routes with parameters, we can also make links leading to these routes:
<nav>
<a
routerLink="/aaaa/1"
routerLinkActive="active"
>
Aaaa with parameter
</a>
<a
routerLink="/bbbb"
routerLinkActive="active"
>
Bbbb
</a>
</nav>
In Angular, however, there is some problem with switching when we have multiple links leading to the same route but with different parameters. We will deal with this problem in the next lesson.
Make a link leading to your route with a parameter.