Is it possible to configure router links to simply add to the query string so that we can build a query string through a series of links?
Given the url:
http://localhost/app
And a link somewhere on the page similar to this:
<a [routerLink]="['.']" [queryParams]="{ foo: 1 }">link 1</a>
Would link to:
http://localhost/app?foo=1
Given a second link:
<a [routerLink]="['.']" [queryParams]="{ bar: 1 }">link 2</a>
Is it possible to produce the route:
http://localhost/app?foo=1&bar=1
rather than overwriting the current query string? I suspect it's possible by listening to the router events and working it out manually but I wonder if it isn't possible through some configuration?