angular-confirmation
v1.0.0
Published
Tmj default confirmation approach
Downloads
9
Readme
Angular Confirmation
default confirmation approach using TMJ angular-bootstrap-modal and angular-ui-bootstrap
Dependencies
Installation
npm install angular-confirmation
Usage
For now please see demo after you clone for usage.
Adding dependency to your project
Be sure to add the module dependency of this library tmjConfirm
.
angular.module('myModule', ['tmjConfirm']);
Services
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
To Fix
When changing the alias of the controller the default template calling must also be change.
TODO
- Documentation
- Test Scripts