craftpip/angular-confirm

Close by controller

anuragsharan opened this issue · 1 comments

I have open the confirm box. Now I want to close this through controller not by clicking the close icon. How can I do that?

Here is the way I close confirm box in contronller

var x = $ngConfirm(options);
//....
// somewhere in the controller u can call this to close that confirm
x.close();