Category Archives: Angular

How to prevent modal pop-up closing, due to outside click inangularjs ?

You can set backdrop as static; thus, it prevents clicking outside of the modal window. It applicable
for bootstrap modals, and if you backdrop as static, the outside of modal will background with a grey
mask. You can also set backdrop as false to prevent the outside click. Here it won’t create a grey
mask as the outside background. The backdrop true means you can click the outside for closing the
modal pop up.

templateUrl : ‘myTemp.html’,
controller: myController,
backdrop: ’static’,
size : size