title: Calling the Angular router in TypeScript
body: <p>I have a button in a page like this:</p>
  
  <pre><code>&lt;button [routerLink]="['../edit', 14]"&gt;Test&lt;/button&gt;
  </code></pre>
  
  <p>So, if I'm at <code>http://localhost/dashboard</code> and click the button, I'm redirected to <code>http://localhost/dashboard/edit/14</code>, which is exactly what I expected.</p>
  
  <p>Now I need to do the same in Typescript. I injected the <code>Router</code> service in my class and tried the following:</p>
  
  <pre><code>this.router.navigate([`../edit/${item.id}`]);
  
  this.router.navigate([`/edit/${item.id}`]);
  
  this.router.navigate([`edit/${item.id}`]);
  </code></pre>
  
  <p>But none is working, all of them redirect me to my starting page with no errors.</p>
  
  <p>Does the <code>Router</code> need some extra setup?</p>