title: Angular2 - Disable RouterLink
body: <p>I want a better way to write these lines of code.</p>
  
  <pre><code>&lt;li *ngIf="params.page &gt; 1" class="page-item"&gt;
      &lt;a class="page-link" [routerLink]="[]" [queryParams]="changePage(params,1)"&gt;First&lt;/a&gt;
   &lt;/li&gt;
  &lt;li *ngIf="!(params.page &gt; 1)" class="page-item disabled"&gt;
       &lt;a class="page-link"&gt;First&lt;/a&gt;
  &lt;/li&gt;
  </code></pre>
  
  <p>I want to disable routerLink when !(params.page > 1). The class "disabled" is the easy way (ngClass). But the routerLink will be still active</p>