In my application, it is using $modal.open()
function to open a modal popup which is using another page as a template. While clicking the button, it is showing the modal popup fine. If I click the Cancel button then it is calling this function and working fine also.
$scope.cancel=function(){
});
But if the user clicks outside the modal popup, we are unable to catch that event by this code
$scope.dismiss=function(){
});
How do I catch that event?
I have seen many articles of AngularJS, but couldn't find a solution for this.