DEV Community

Dharmen Shah for Angular Material Dev

Posted on

3 1 1 1 1

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.

Image of Timescale

Timescale – the developer's data platform for modern apps, built on PostgreSQL

Timescale Cloud is PostgreSQL optimized for speed, scale, and performance. Over 3 million IoT, AI, crypto, and dev tool apps are powered by Timescale. Try it free today! No credit card required.

Try free