dwmkerr / angular-modal-service

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

Add closeModal function to the modal object #189

Open unkillbob opened 7 years ago

unkillbob commented 7 years ago

This enables the modal to be closed by external factors outside of the modal's controller. Also made the cleanUpClose function a little more null safe as we've seen a handful of null reference errors inside this code in the past.

coveralls commented 7 years ago

Coverage Status

Coverage increased (+0.2%) to 86.154% when pulling c7939146a230e5a1a7d9e7eef5aabf569dfe8b69 on vend:close-modal-fn into 2c07464da8b661d6721827809f61e1870733bcd6 on dwmkerr:master.