Show Angular Material Dialog to Prevent Unsaved Form Changes

shhdharmen

Dharmen Shah

Posted on September 24, 2024

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

💖 💪 🙅 🚩
shhdharmen
Dharmen Shah

Posted on September 24, 2024

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related