md-data-table icon indicating copy to clipboard operation
md-data-table copied to clipboard

How to resolve/reject edit dialog

Open marcincichocki opened this issue 8 years ago • 2 comments

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).

marcincichocki avatar Jun 27 '16 16:06 marcincichocki

helps me https://github.com/daniel-nagy/md-data-table/issues/235

snakerius avatar Jul 07 '16 17:07 snakerius

inject $element and call the following method $element.remove();

https://github.com/daniel-nagy/md-data-table/issues/378#issuecomment-214408136

ngehlert avatar Jun 12 '17 14:06 ngehlert