Releases: dwmkerr/angular-modal-service
Releases · dwmkerr/angular-modal-service
v0.15.0
- Support for a globally configurable close timeout. Thanks decherneyge.
- Support for selector for
appendElement
. Thanks decherneyge. - Tooling version updates.
v0.12.0
This release adds two much needed APIs:
closeModals
ModalService.closeModals(result, delay)
: Closes any open modals, passing the specified result (optional) and waiting for the specified delay (optional).
preClose
ModalService.showModal(options)
: A new optional field named preClose
is a function which is called before the modal starts closing. If you want to clean up your Bootstrap modals automatically, just use:
ModalService.showModal({
templateUrl: "some/bootstrap-template.html",
controller: "SomeController",
preClose: (modal) => { modal.element.modal('hide'); }
}).then(function(modal) {
// etc
});
v0.11.0
This minor release adds a new feature - being able to add a custom class to the document's body
element when the modal is opened. This is great if you are not using bootstrap but still want to be able to style the main page, for example fading it while the modal is open. Thanks to Daniel Smith for the feature!