1
Problem with modal output $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 out of the modal, it closes the modal, but does not trigger the cancel event. I know that if you change backdrop:'Static' and Keyboard:false, it locks the modal closure, but this way it doesn’t look cool, I just want it to execute the Cancel method inside the modal control when the person clicks outside the modal.
$scope.cancel();
How to make it fire?
Adjust this Jsfiddle to your modal and see if it works: https://jsfiddle.net/ndfmcun5/
– Sam