dwmkerr / angular-modal-service

Modal service for AngularJS - supports creating popups and modals via a service.
MIT License
626 stars 321 forks source link

Can't overlay modals #272

Open phackwer opened 5 years ago

phackwer commented 5 years ago

Hi,

I have a modal to edit some itens in my application, and inside this modal I have a remove button which calls another modal service in the scope of the previous modal controller to present a confirmation dialog.

How can I keep the previous modal open and only close both modals if the confirmation button is clicked, but closing just the confirmation modal if cancel button is clicked? Why is my first modal closed when the new one (child) is called?

dwmkerr commented 5 years ago

At the moment the service only supports ones modal at a time (if you are using bootstrap) as this is a limitation of the bootstrap modal itself I'm afraid. So you'll have to fork and hack it to make it work!