ng router link
snippet in html

angular [routerlink]

user2756

      
        content_copy
      
      <a [routerLink]="['/user/bob']" [queryParams]="{debug: true}" fragment="education">
  link to user component
</a>
    

ng router link

user5449

<a [routerLink]="['/user/bob']" [queryParams]="{debug: true}" fragment="education">
  link to user component
</a>

angular get router params

user9177

constructor(
	private route: ActivatedRoute,
) {}

ngOnInit() {
	const id = this.route.snapshot.paramMap.get('id')
}