angular 8 navigation code example
Example 1: generate module with routing in angular
ng g m [ModuleName] --routing
Example 2: routerlink example
<a class="nav-link" [routerLink]="['/home']" (click)="doSomeLogic()">Home</a>
ng g m [ModuleName] --routing
<a class="nav-link" [routerLink]="['/home']" (click)="doSomeLogic()">Home</a>