In angular 6, is it possible to use query parameters within a secondary named router outlet. An example URL of the type I am looking for is
localhost:4200/home(sidebar:chat?animal=dog)
I am looking to be able to set the query parameter: animal and also be able to access its value within the component.
So far I have tried in the template
[routerLink]="gridRouterLink" [queryParams]="queryParams"
where gridRouterLink = ["", {outlets: {sidebar: "chat"}}]
and queryParams = { animal: "dog"}
but i get something like localhost:4200/home(sidebar:chat)?animal=dog