title: Angular 2 routerLink params & query params
body: <p>Here is my route:</p>
  
  <pre><code>{ path: 'market/:currency', component: MainlayoutComponent, canActivate: [AuthGuard]}
  </code></pre>
  
  <p>I want redirect to with query params like this:</p>
  
  <p><strong>market/btc?sidebar=home</strong></p>
  
  <pre><code>&lt;a [routerLink]="['/market', currency]" [queryParams]="{sidebar: 'home'}"&gt;&lt;/a&gt;
  </code></pre>
  
  <p>But when i click its redirect <strong>market/btc</strong></p>
  
  <p>What's the problem.</p>
  
  <p>Editing</p>
  
  <p>This code works i have another bug but i solved.</p>