Actually if the user click outside the $confirm modal it does the same thing as clicking cancel.
Is there a way to force the user to click only on "ok" or "no" button and make click outside the modal do nothing ?
$modal get an option to do this backdrop: 'static' but i don't know how to use it here ( i use $confirm as service in controller )
backdrop - controls presence of a backdrop. Allowed values: true (default), false (no backdrop), 'static' - backdrop is present but modal window is not closed when clicking outside of the modal window.
Actually if the user click outside the $confirm modal it does the same thing as clicking cancel. Is there a way to force the user to click only on "ok" or "no" button and make click outside the modal do nothing ?
$modal get an option to do this
backdrop: 'static'
but i don't know how to use it here ( i use $confirm as service in controller )For example:
$modal.open({ templateUrl: 'myModalContent.html', controller: ModalInstanceCtrl, backdrop: 'static' })