DEV Community

Dharmen Shah for Angular Material Dev

Posted on

Show Angular Material Dialog to Prevent Unsaved Form Changes

Angular material's dialog's afterClosed method returns an Observables.

This makes them work great with canDeactivate route guards for unsaved changes in forms:

Image description

Top comments (0)

Some comments may only be visible to logged-in visitors. Sign in to view all comments.