likeastore / ngDialog

Modals and popups provider for Angular.js applications
http://likeastore.github.io/ngDialog
3.14k stars 692 forks source link

Bug in .Close() method #530

Open RodrigoKB opened 7 years ago

RodrigoKB commented 7 years ago

When passing a value as a parameter, it is not being returned in the .closePremess.

But i use the .closeAll() method, it is work.

Thanks!

AnghelGabriel commented 7 years ago

Try something like this.

ngDialog.open({
      template:YOURTEMPLATE
    }).closePromise.then(
          function(data) {
            console.log(data.value);
          })