How can I use an empty href attribute without redirect?
<p>Is there a way to have <code>href</code> without being redirect back to the root in angular2? As I have this <code>&lt;a href="" (click)="modal.open()"&gt;&lt;/a&gt;</code> code to open up a modal but its redirecting me back to my home page.</p>

<p>I know its because of the routeConfig angular has, but is there a way to say bypass that?</p>

<pre><code>{ path: '', component: LoginComponent, pathMatch: 'full'},
</code></pre>

<p>Note sure if removing href completely is valid, it may be without check w3c validation.</p>