md-data-table
md-data-table copied to clipboard
How to resolve/reject edit dialog
I would like to know how to resolve/reject promise I got from:
const promise = $mdEditDialog.show(options);
promise.then((result) => {
// do something
}).catch((error) => error);
Because $mdEditDialog
service don't have .hide()
method like, for example $mdDialog
(from angular material library).
helps me https://github.com/daniel-nagy/md-data-table/issues/235
inject $element and call the following method $element.remove();
https://github.com/daniel-nagy/md-data-table/issues/378#issuecomment-214408136