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.

Qodo Takeover

Introducing Qodo Gen 1.0: Transform Your Workflow with Agentic AI

Rather than just generating snippets, our agents understand your entire project context, can make decisions, use tools, and carry out tasks autonomously.

Read full post