Capture hide event in $modal of angular strap
问题 I am using angular Strap to create a modal like : $modal({ template : "/templ/alert-with-title.html", content : content, title : title, show : true, backdrop : true, placement : 'center' }); I have the written the following : $scope.$on("modal.hide.before",function() { console.log("Closing1"); }); $scope.$on("modal.hide",function() { console.log("Closin2"); }); My /templ/alert-with-title.html is like this : <div aria-hidden="true" aria-labelledby="windowTitleLabel" role="dialog" tabindex="-1"