Angular2, how to clear URL query params on router navigate : <p>I am struggling with clearing out URL params during nav in Angular 2.4.2. I have tried attaching every option to clear the params in the below navigation line, or any mix therein with navigate, or navigateByUrl, but cannot figure out how to accomplish.</p>

<pre><code>this.router.navigateByUrl(this.router.url, { queryParams: {}, preserveQueryParams: false });
</code></pre>

<p>As an example I am at route <code>/section1/page1?key1=abc&amp;key2=def</code> and want to stay at the same route but remove all the url parameters, so the end result should be <code>/section/page1</code></p>
