How to pass query parameters with a routerLink
<p>I want to pass a query parameter <code>prop=xxx</code>.</p>
<p>This didn't work</p>
<pre class="lang-html prettyprint-override"><code>&lt;a [routerLink]=&quot;['/somepath', {queryParams: {prop: 'xxx'}}]&quot;&gt;
  Somewhere
&lt;/a&gt;
</code></pre>