DEV Community

Dharmen Shah for Angular Material Dev

Posted on

3 1 1 1 1

Close Angular Material Dialog Programmatically

🤔 Ever wondered how to close #angular material dialog programmatically?

💡Use MatDialogContainer to get dialog's ID and use it to close from MatDialog service!

Top comments (1)

Collapse
 
jangelodev profile image
João Angelo •

Hi Dharmen Shah,
Thanks for sharing.

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

DEV is better (more customized, reading settings like dark mode etc) when you're signed in!

Okay