Skip to content

Commit

Permalink
v0.11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
beradrian committed Feb 9, 2017
1 parent dcbde14 commit 1dafcea
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions checklist-model.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>checklist-model</id>
<version>0.10.0</version>
<version>0.11.0</version>
<title>AngularJS directive for list of checkboxes</title>
<authors>https://github.com/vitalets</authors>
<owners>Vitaliy Potapov ([email protected])</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>
In Angular one checkbox is linked with one model. But in practice
we usually want one model to store array of checked values from
In Angular one checkbox is linked with one model. But in practice
we usually want one model to store array of checked values from
several checkboxes. Checklist-model solves that task without
additional code in controller.
additional code in controller.
</description>
<licenseUrl>https://raw.githubusercontent.com/vitalets/checklist-model/master/LICENSE.txt</licenseUrl>
<tags>angularjs checklist model angular-checklist-model checklist-model checklistmodel</tags>
Expand All @@ -22,4 +22,4 @@
<files>
<file src="checklist-model.js" target="content\Scripts\checklist-model.js" />
</files>
</package>
</package>
12 changes: 6 additions & 6 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
AngularJS directive for list of checkboxes

## Why this is needed?
In Angular one checkbox `<input type="checkbox" ng-model="...">` is linked
In Angular one checkbox `<input type="checkbox" ng-model="...">` is linked
with one model.
But in practice we usually want one model to store array of checked values
But in practice we usually want one model to store array of checked values
from several checkboxes.
**Checklist-model** solves that task without additional code in controller.

## Usage
You should play with attributes of `<input>` tag:

| Attribute | Mandatory | Description |
| :-----------------------: | :-------: | --------------------------------------------- |
| `checklist-model` | Yes | Use instead of `ng-model` |
Expand All @@ -41,7 +41,7 @@ Please, try out
1. Download [latest release](https://github.com/vitalets/checklist-model/releases) *or*
2. Use bower `bower install checklist-model` *or*
3. Install from npm `npm install checklist-model`
2. If your JavaScript file is not generated from dependencies, then you must include it in your HTML `<script src='checklist-model.js'></script>`
2. If your JavaScript file is not generated from dependencies, then you must include it in your HTML `<script src='checklist-model.js'></script>`
3. Add to app dependencies:
````js
var app = angular.module("app", ["checklist-model"]);
Expand All @@ -68,9 +68,9 @@ The best way to involve is to report an issue/enhancement and then provide a pul
7. Access `http://localhost:8000` for samples and `http://localhost:8000/test` for running the tests.

### How to make a new release
1. Change the version number in `bower.json` and `package.json` (if not already changed - check the version number against the latest release in Github)
1. Change the version number in `package.json`, `bower.json` and `checklist-model.nuspec` (if not already changed - check the version number against the latest release in Github)
2. Create a new [release](https://github.com/vitalets/checklist-model/releases) in github with the same name for tag and title as the version number (e.g. `1.0.0`). Do not forget to include the changelog in the release description.
3. Run `npm publish` to publish the new version to npm

## License
MIT
MIT

0 comments on commit 1dafcea

Please sign in to comment.