Rahul Prasad Rahul Prasad - 1 year ago 69
AngularJS Question

How do I prevent angular-ui modal from closing?

I am using Angular UI $modal in my project

I don't want user to close the modal by pressing on backdrop. I want a modal can only be closed by pressing close button which I have created.

How do I prevent modal from closing ?

Answer Source

While you creating your modal you can specify its behavior:

   // ... other options
   backdrop  : 'static',
   keyboard  : false
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download