btford / angular-modal

Simple AngularJS service for creating modals

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Option to add an overlay when modal is active

jeremymarc opened this issue · comments

Would be great to add an option to add an overlay when the modal is active.

Simple solution: http://plnkr.co/edit/Rx0rFpTFmVESAzd8wtyL?p=preview

Compared to the plunker in the readme, all that is added is a div in the modal.html with the content:

<div ng-click="modal.closeMe()" style=" position:absolute; z-index:1000; top:0; left:0; width:100%; height:100%; background-color:#000000; opacity: 0.5;"></div>

thank you :-)