ngDialog closes all the active modals
<p>I am having a problem with ngDialog (<a href="https://github.com/likeastore/ngDialog" rel="nofollow">https://github.com/likeastore/ngDialog</a>), 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.</p>

<p>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....</p>

<p>I have created a plunker to try and show what I am doing and it is acting the same way...<a href="http://plnkr.co/0bg1VB7QuEZxIdakfoBr" rel="nofollow">http://plnkr.co/0bg1VB7QuEZxIdakfoBr</a></p>

<pre><code>scope.closeThisDialog = function() {
  ngDialog.close("secondDialog");
};
</code></pre>

<p>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.</p>

<p>Can anyone shed any light on what I am doing wrong.</p>