The first modal
.modal.fade(id="modalDelete" my-modal)
.modal-dialog.modal-sm
.modal-content
.modal-header
button.close(type='button', data-dismiss='modal', aria-hidden='true') ×
h4.modal-title {{ modalDeleteTitle }}
.modal-body
p {{ modalDeleteMessage }}
.modal-footer
button.btn.btn-default(type='button', data-dismiss='modal') Annuleren
button.btn.btn-primary(type='button' data="{{ customerToDelete }}" ng-click="confirmDelete(customerToDelete)") Ja, verwijderen!
The second modal
.modal.fade(id="modalPrintQr" my-modal)
.modal-dialog.modal-sm
.modal-content
.modal-header
button.close(type='button', data-dismiss='modal', aria-hidden='true') ×
h4.modal-title Klantenkaart QR Code
.modal-body(style="text-align:center;")
qrcode(id="qrprint" class="myqrcode" data="{{ QRtoPrint }}" size="200")
.modal-footer
button.btn.btn-default(type='button', data-dismiss='modal') Annuleren
button.btn.btn-primary(type='button' data="{{ customerToDelete }}" ng-click="confirmPrintQrCode()") Code afdrukken
$scope.confirmDelete = function(customer){
$scope.dismiss();
};
Closing the modal doesn’t work anymore after adding the second modal. I’m wondering how I can target a specific modal and dismiss() that?