I have Angular 4 SPA application using Angular router. I want to have hyperlink that opens a component in new dialog using Bootstrap 4. I already know how to open modal dialog from a function.
But how to open it using hyperlink?
<a [routerLink]="['/login']">Login</a>
I want to leave my current component in and just show modal dialog in front of it.
Another question - is it possible to do that programatically? So that I can
this.router.navigate(['/login']);
and login modal dialog is displayed over current component?
Any suggestions?