title: how to use routerLink in HTML file in Angular 2?
body: <p>How to use routerLink in <code>.html</code> file? I have used below code but it is not working.</p>
  
  <pre><code>&lt;div class="container"&gt;
  &lt;header class="page-header"&gt;
    &lt;ul class="nav nav-pills"&gt;
      &lt;li routerLinkActive="active"&gt;
          &lt;a [routerLink]="['/register']"&gt;Register&lt;`/a&gt;
      &lt;/li&gt;
      &lt;li routerLinkActive="active"&gt;
         &lt;a [routerLink]="['/login']"&gt;Login&lt;/a&gt;
      &lt;/li&gt;        
    &lt;/ul&gt;
  &lt;/header&gt;
  
  &lt;p class="jumbotron"&gt;
      &lt;router-outlet&gt;&lt;router-outlet&gt;
  &lt;/p&gt;
  </code></pre>
  
  <p></p>
  
  <p>In <code>app.component.ts</code> I have mentioned <code>templateUrl: 'index.html'</code>.</p>