I am having a problem with ngDialog (https://github.com/likeastore/ngDialog), I have 1 dialog open and when the user clicks a button it pops up another modal on top as an alert. I want to close the alert dialog via a button but when I use ngDialog.close() is closes all the active modals.
I realise the docs state that if you do not pass an id then it acts as closeAll(), therefore I need to give it an id. So when I use ngDialog.open() I give it an id of alert and then I use ngDialog.close("alert"), however this still closes all the modals....
I have created a plunker to try and show what I am doing and it is acting the same way...http://plnkr.co/0bg1VB7QuEZxIdakfoBr
scope.closeThisDialog = function() {
ngDialog.close("secondDialog");
};
If you inspect at the source it also shows that the id is not showing up either, I suspect that this is why both modals are closing still.
Can anyone shed any light on what I am doing wrong.