title: RouterLink inside a repeater angular 2
body: <p>There is a <code>routerLink</code> that enables the necessary routes for navigation provided with the <code>config</code>.</p>
  
  <p>It works fine, if it is done something like below:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;ul class="nav"&gt;
      &lt;li class="nav-item"&gt;
          &lt;a class="nav-link" href="#" [routerLink]="['/home']"&gt;Home&lt;/a&gt;
      &lt;/li&gt;
      &lt;li class="nav-item"&gt;
          &lt;a class="nav-link" href="#" [routerLink]="['/about']"&gt;About&lt;/a&gt;
      &lt;/li&gt;
  &lt;/ul&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>But it fails when used inside a <code>*ngFor</code> repeater, like this</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;ul class="nav"&gt;
      &lt;li class="nav-item" *ngFor="let item of menu"&gt;
          &lt;a class="nav-link" href="#" [routerLink]="['{{item.link}}']"&gt;{{item.name}}&lt;/a&gt;
      &lt;/li&gt;
  &lt;/ul&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>I have searched enough on <code>Google</code> but I wasn't able to find a satisfying answer.</p>
  
  <p>Any help is appreciated</p>