routerLink in balise a code example
Example 1: routerLink
<a routerLink="/NameOfYourRoute"></a>
Example 2: routerlink example
<a class="nav-link" [routerLink]="['/home']" (click)="doSomeLogic()">Home</a>
<a routerLink="/NameOfYourRoute"></a>
<a class="nav-link" [routerLink]="['/home']" (click)="doSomeLogic()">Home</a>