I am making an app with Angular 2 where i have two components each having its own EventEmitter. One EventEmitter is fired when bunch of checkboxes are checked/unchecked and the other is fired when a search keyword is entered. The search bar is in the header component and the checkboxes are in different component.
I am able to catch these eventEmitters
separately - however i want to combine their data into URL params.
For example:
http://localhost:4200;data=a123,b345,c678;q=searchkeyword
The data values should come from checkboxes and the q
from a search bar.
I cant seem to find a way to append to the URL params data and keyword provided separately.
Can someone please suggest to me how i should do this?