I have an Angular 4 SPA application that utilizes the Angular router. I am looking to create a hyperlink that will open a component in a new dialog using Bootstrap 4. I am able to open modal dialogs from a function already.
My question is, how can I achieve this using a hyperlink?
<a [routerLink]="['/login']">Login</a>
The goal is to keep my current component visible and display the modal dialog on top of it.
Another point of interest - is there a way to accomplish this programmatically? For example,
this.router.navigate(['/login']);
Could this code snippet be used to display the login modal dialog over the current component?
Any suggestions or insights on how to achieve this would be greatly appreciated!