Routing on button click in angular 5
routerLink will be working properly.
app.component.html:
<button class="nav-item nav-link-edit" [routerLink]="['Home']">Home</button >
Yes, routerLink
works on both anchor tags and button tags. You can do this:
<button class="nav-item nav-link-edit" [routerLink]="['']">home</button >