DEV Community

Dharmen Shah for Angular Material Dev

Posted on

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.