Use:
backdrop: 'static'
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.
For example:
$modal.open({
templateUrl: 'myModalContent.html',
controller: ModalInstanceCtrl,
backdrop: 'static'
})