default confirmation approach using TMJ angular-bootstrap-modal and angular-ui-bootstrap
npm install angular-confirmation
For now please see demo after you clone for usage.
Be sure to add the module dependency of this library tmjConfirm
.
angular.module('myModule', ['tmjConfirm']);
You should inject the Confirm
service for you to use the feature of this library.
Controller.$inject = ['Confirm'];
function Controller(Confirm) {
}
Service Functions
Confirm.show()
- default showing of confirmationConfirm.add()
- same withConfirm.show()
but by default specified title & action asadd
Confirm.edit()
- same withConfirm.show()
but by default specified title & action asedit
Confirm.remove()
- same withConfirm.show()
but by default specified title & action asdelete
Note: Changing alias of controller will conflict the template/ If changing the alias you should provide or change the template
When changing the alias of the controller the default template calling must also be change.
- Documentation
- Test Scripts