How to close a dialog in Angular?
By default, dialog can be closed by pressing Esc key and clicking the close icon on the right of dialog header. It can also be closed by clicking outside of the dialog using hide method.
How do I close MatDialog box?
By default, the escape key closes MatDialog .