Is there any event that fires when a popup closes.
Modal opens on click event. The modal has a close button, but also closes when the user clicks anywhere outside the modal div.
I would like to perform some actions when the popup closes. I know how to write a function when I click this close button, but what if the modal closes by some other action.
app.controller('MainCtrl', function ($scope, ngDialog) { $scope.clickToOpen = function () { ngDialog.open({ template: 'popupTmpl.html' }); }; });
source share