I'm working with an AngularUI's modal, and I would like to change a variable of my controller when the modal is closed.
My modal looks like this:
<div class="modal fade" id="awesomeModal" role="dialog"> ... <button type"button" data-dismiss="modal">Close</button> </div> I guess the close event of the modal has to do with data-dismiss, but I don't find yet how to do something at this specific moment.
What I would like to do is to set $scope.finished = true; when the modal is closed.
I know I can do something like <button type"button" data-dismiss="modal" ng-click="finished = false>Close</button>, but there is, in my opinion, a cleaner way to do it.
returnangular-ui.github.io/bootstrap/#/modal Syntax is$modal.open({/*params here*/}).result.then(function() { /* logic here */ });