query params in routerlink angular 6 code example
Example 1: routerlink query params
<a [routerLink]="['../']" [queryParams]="{prop: 'xxx'}">Somewhere</a>
Example 2: in angular how to get router url without query params
this.router.url.split('?')[0]