Fork me on GitHub
Using ngx-keyevent directive to close a Material dialog.
Injecting the ngx-keyevent service in any component to listen for key events:
Start typing..
.