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