javascriptangularjsangularjs-materialmddialog

How can I close just the one of the opened mdDialogs? AngularJs


I have 3 open mdDialogs in my app(not nested in controller) with the 2 of them having the key 'multiple' set to true so they don't close one another. When I call mdDialog.close() or mdDialog.hide() at one of them, both of the child dialogs hide. Is there any way of closing them 1 by 1 ? [Closed]


Solution

  • Actually was a silly mistake guys.. On stacked dialogs with 'multiple' set to true for every child is enough if we just run $mdDialog.hide(). On my issue the problem was that I had 2 calls for the hide function by mistake so, as a result I was closing both dialogs. My bad unnecessary question, but it could be usefull for someone new.