Angular 7 Routing giving me a ; in params

27 Views Asked by At

I am trying to build this url "table-screen?get=collaborator_list_admin" but I am getting the following url "table-screen;get=collaborator_list_admin"

    import { Router } from '@angular/router';

    // code......
    // more code.......
    this.router.navigate(['table-screen', {get: 'collaborator_list_admin'}]);
1

There are 1 best solutions below

0
On

this.router.navigate(['table-screen'], {queryParams:{get: 'collaborator_list_admin'}})