why we should not we use routerLink in html code example
Example: routerlink example
<a class="nav-link" [routerLink]="['/home']" (click)="doSomeLogic()">Home</a>
<a class="nav-link" [routerLink]="['/home']" (click)="doSomeLogic()">Home</a>