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