# angular-confirmation

> Tmj default confirmation approach

Latest version **1.0.0** (published 2016-10-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install angular-confirmation
pnpm add angular-confirmation
yarn add angular-confirmation
bun add angular-confirmation
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2016-10-18 |
| First published | 2016-10-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 (+12 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | TMJP Engineering, Rej Mediodia |
| Maintainers | tmjp-engineering |
| Keywords | tmj, confirmation, tmj-confirmation, default-confirmation |

## Links

- npm: https://www.npmjs.com/package/angular-confirmation
- Repository: https://github.com/TMJPEngineering/confirmation
- Homepage: https://github.com/TMJPEngineering/confirmation#readme
- Issues: https://github.com/TMJPEngineering/confirmation/issues
- npm.io page: https://npm.io/package/angular-confirmation

## Dependencies (4)

- [angular](https://npm.io/package/angular.md) ^1.5.8
- [bootstrap](https://npm.io/package/bootstrap.md) ^3.3.7
- [angular-ui-bootstrap](https://npm.io/package/angular-ui-bootstrap.md) ^2.2.0
- [angular-bootstrap-modal](https://npm.io/package/angular-bootstrap-modal.md) ^1.0.3

## Recent versions

- 1.0.0 (latest) — 2016-10-18

## README

# Angular Confirmation
default confirmation approach using TMJ [angular-bootstrap-modal](https://github.com/TMJPEngineering/angular-bootstrap-modal)
and [angular-ui-bootstrap](https://github.com/angular-ui/bootstrap)

# Dependencies

- [Angular 1](https://angularjs.org/)
- [Angular UI Bootstrap](https://github.com/angular-ui/bootstrap)
- [TMJ Angular Modal](https://github.com/TMJPEngineering/angular-bootstrap-modal)

# 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 confirmation
- `Confirm.add()` - same with `Confirm.show()` but by default specified title & action as `add`
- `Confirm.edit()` - same with `Confirm.show()` but by default specified title & action as `edit`
- `Confirm.remove()` - same with `Confirm.show()` but by default specified title & action as `delete`

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

[MIT](https://github.com/TMJPEngineering/angular-confirmation/blob/master/LICENSE)

---
_Source: https://npm.io/package/angular-confirmation · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
