1.0.0 • Published 9 years ago
angular-confirmation v1.0.0
Angular Confirmation
default confirmation approach using TMJ angular-bootstrap-modal and angular-ui-bootstrap
Dependencies
Installation
npm install angular-confirmationUsage
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 asaddConfirm.edit()- same withConfirm.show()but by default specified title & action aseditConfirm.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
License
1.0.0
9 years ago