My inclusions:
bootstrap.css [ getbootstrap.com/2.3.2 ] angular/ui-bootstrap-tpls-0.10.0.min.js from: [ angular-ui.imtqy.com/bootstrap ]
I am using AngularJS and Twitter Bootstrap.
From AngularJS, I open a modal window as follows:
var modalInstance = $modal.open({ templateUrl: 'resources/html/mymodal.html', controller: 'mymodalController', scope: $scope });
My modal template:
<div class="modal"> < <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> </div> ..... </div>
Question:
Close button [x] does not work
When I click on it, the modality does not disappear. But when I press Esc, the modality disappears.
It looks like ... data-reject = "modal" does not work. Any ideas?
source share