title: How to close a ngDialog from angular controller
body: <p>I need to open multiple ngDialog with same id, when clicking the close button it should close only the currently opened ngDialog.</p>
  
  <p>For closing ngDialog I need to call one event which collects the data then closes the ngDialog.</p>