EXCEPTION: Root segment cannot have matrix parameters
<p><strong>Html:</strong></p>

<pre><code>[routerLink]="['', {'scrollTo': '#contact'}]"
</code></pre>

<p><strong>TS:</strong> </p>

<pre><code>this.route.params.forEach((params: Params) =&gt; {
    if (params['scrollTo']) {
        // some code here
    }
});
</code></pre>

<p>Error: EXCEPTION: Root segment cannot have matrix parameters </p>

<p>I can't have 'scrollTo' param in my routerLink?</p>

<p>It clearly appears on the angular 2 documentation: <a href="https://angular.io/docs/ts/latest/guide/router.html#!#appendix-link-parameters-array" rel="noreferrer">https://angular.io/docs/ts/latest/guide/router.html#!#appendix-link-parameters-array</a></p>

<p><strong>EDIT:</strong></p>

<p>Doesn't seem to complaint with : <code>&lt;a [routerLink]="['/crisis-center', { scrollTo: '#contact' }]"&gt;Crisis Center&lt;/a&gt;</code>. But I need it with my '' root route.</p>