title: Angular 5 remove query param
body: <p>How would I remove a query parameter from the URL? For example from <code>www.expample.com/home?id=123&amp;pos=sd&amp;sd=iii</code> to <code>www.expample.com/home?id=123&amp;sd=iii</code></p>
  <p>EDIT:
  This is my version:</p>
  <pre><code>this.activatedRoute.queryParams.subscribe(c =&gt; {
    const params = Object.assign({}, c);
    delete params.dapp;
    this.router.navigate([], { relativeTo: this.activatedRoute, queryParams: params });
  }).unsubscribe();
  </code></pre>