I am using Angular Material (5.0.0) to create a Single Page Web Application for mobile devices. I have a scenario when I need to display a dialog. I would like to allow the user to hit back to close the dialog, as it's a very common behavior on mobile (especially on Android).
When this happens currently, the page goes to the previous page. I instead need the button to simply dismiss the dialog.
Any ideas on how this might be accomplished??
Best Answer
This option is already available
Other ways using routes changes events:
1. From app component
2. From dialog component