I have encountered an issue in my application where I am using the $modal.open()
function to display a modal popup that uses another page as a template. The popup works fine when clicked, and the Cancel button also functions correctly triggering the specified function.
$scope.cancel=function(){
});
However, I am facing a problem when trying to capture the event of clicking outside the modal popup using the following code:
$scope.dismiss=function(){
});
Is there a way to catch this event?
I have researched many AngularJS resources but have not been able to find a solution to this issue.