1<a class="nav-link" [routerLink]="['/home']" (click)="doSomeLogic()">Home</a>
2
1
2 content_copy
3
4 <a [routerLink]="['/user/bob']" [queryParams]="{debug: true}" fragment="education">
5 link to user component
6</a>
7
1<a [routerLink]="['/user/bob']" [queryParams]="{debug: true}" fragment="education">
2 link to user component
3</a>
1<li routerLinkActive="active" [routerLinkActiveOptions]="{exact: true}">
2 <a>Home</a>
3</li>
1// Here’s a basic example using the navigate method:
2
3goPlaces() {
4 this.router.navigate(['/', 'page-name']);
5}
6
7/*
8I hope it will help you.
9Namaste
10*/