https://github.com/rochdev/angular-check-all
AngularJS directive to control a group of checkboxes
https://github.com/rochdev/angular-check-all
Last synced: 10 months ago
JSON representation
AngularJS directive to control a group of checkboxes
- Host: GitHub
- URL: https://github.com/rochdev/angular-check-all
- Owner: rochdev
- License: mit
- Created: 2014-09-08T01:13:05.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2017-04-22T12:23:38.000Z (about 9 years ago)
- Last Synced: 2025-08-13T06:31:06.652Z (10 months ago)
- Language: JavaScript
- Homepage: https://github.com/rochdev/angular-check-all
- Size: 23.4 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# angular-check-all
[](https://github.com/rochdev/angular-check-all)
[](https://travis-ci.org/rochdev/angular-check-all)
[](https://codeclimate.com/github/rochdev/angular-check-all)
[](https://codeclimate.com/github/rochdev/angular-check-all)
[](https://gemnasium.com/rochdev/angular-check-all)
[][license-url]
[AngularJS](https://angularjs.org) directive to control a group of checkboxes. Fully compatible with [checklist-model](http://vitalets.github.io/checklist-model/).
## How to install
From your project root, run:
```sh
$ bower install --save angular-check-all
```
## Usage
```html
```
Available options:
| Attribute | Type | Description
| --------- | ---- | -----------
| check-all | `expression` | Array or object containing checkbox values.
| to-list *(optional)* | `expression` | List containing the checked keys/values instead of using boolean values directly on the source.
| by-value *(optional)* | `expression` | Path expression to find the values to copy to the list when looping through the source.
| by-key *(optional)* | `void` | If present, tells the directive to copy keys to the list instead of values.
| nested-by *(optional)* | `expression` | Path expression to find children for recursion. Works with the `by-value` option.
## Example
See the [example](example) folder for a complete example.
## License
[MIT License][license-url]
[license-url]: http://en.wikipedia.org/wiki/MIT_License