Problem with output from modal $uibModal
:
var modalInstance = $uibModal.open({
animation: true,
templateUrl: 'detalhes_leitura.html',
controller: 'ModalController',
size: size,
backdrop:true,
keyboard:true,
resolve: {
dados: function () {
return $scope.result_items;
}
}});
When I click outside the modal, it closes the modal, but does not trigger the cancel event. I know that if I change backdrop: 'static' and keyboard: false, it locks the modal closure, but this way it does not look cool, I just want it to execute the cancel method inside the modal control when the person clicks out of modal. / p>
$scope.cancel();
How to make it shoot?