title: Prevent routerLink action in Angular 2
body: <p>I have a link:</p>
  
  <pre><code>&lt;a routerLink="/test" (click)="testClick($event)"&gt;Test link &lt;/a&gt;
  </code></pre>
  
  <p>I wanted to do in <code>testClick</code> function something like this:</p>
  
  <pre><code>testClick(event:any) {
      if (..some expression..) {
          //custom popup confirmation
          //if true --&gt; event.preventDefault();
      } else {
          // go to link
      }
  }
  </code></pre>
  
  <p>But calling <code>preventDefault</code> doesn't work. How can I fix it?</p>