QueryParams is routerLink where they can be passed like
<a [routerLink]="['/path']" [queryParams]="{id:'value'}"> Details </a>
To pass query parameters to ts file.
this.router.navigate(['/path'], queryParams: { 'id': 'value'});
<a [routerLink]="['/path']" [queryParams]="{id:'value'}"> Details </a>
this.router.navigate(['/path'], queryParams: { 'id': 'value'});