title: Routing on button click in angular 5
body: <p>I need to route to a home component when the user clicks a button. I know how to do that using: <code>&lt;a href=””&gt;</code>, but not using: <code>routerLink</code>. Is there any way to do that using a <code>button</code> <code>click</code> event?</p>
  
  <pre><code>&lt;a class="nav-item nav-link-edit" [routerLink]="['']"&gt;home&lt;/a&gt;
  </code></pre>
  
  <p>The code above is how I use an <code>&lt;a href=""&gt;</code> tag to route.</p>