This content originally appeared on DEV Community and was authored by Dharmen Shah
Angular material's dialog's afterClosed method returns an Observables.
This makes them work great with canDeactivate route guards for unsaved changes in forms:
This content originally appeared on DEV Community and was authored by Dharmen Shah
Dharmen Shah | Sciencx (2024-09-24T16:45:35+00:00) Show Angular Material Dialog to Prevent Unsaved Form Changes. Retrieved from https://www.scien.cx/2024/09/24/show-angular-material-dialog-to-prevent-unsaved-form-changes/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.