Socket
Socket
Sign inDemoInstall

checklist-model

Package Overview
Dependencies
Maintainers
3
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

checklist-model - npm Package Compare versions

Comparing version 0.6.0 to 0.7.0

2

bower.json
{
"name": "checklist-model",
"version": "0.6.0",
"version": "0.7.0",
"description": "AngularJS directive for list of checkboxes",

@@ -5,0 +5,0 @@ "author": "https://github.com/vitalets",

@@ -69,3 +69,3 @@ /**

return a[comparatorExpression] === b[comparatorExpression];
}
};

@@ -116,5 +116,3 @@ } else {

compile: function(tElement, tAttrs) {
if ((tElement[0].tagName !== 'INPUT' || tAttrs.type !== 'checkbox')
&& (tElement[0].tagName !== 'MD-CHECKBOX')
&& (!tAttrs.btnCheckbox)) {
if ((tElement[0].tagName !== 'INPUT' || tAttrs.type !== 'checkbox') && (tElement[0].tagName !== 'MD-CHECKBOX') && (!tAttrs.btnCheckbox)) {
throw 'checklist-model should be applied to `input[type="checkbox"]` or `md-checkbox`.';

@@ -121,0 +119,0 @@ }

app.controller('Ctrl5', function($scope) {
$scope.roles = {
a: 'Administrator',
c: 'Customer',
g: 'Guest',
u: 'User',
c: 'Customer',
a: 'Administrator'
u: 'User'
};

@@ -8,0 +8,0 @@

app.controller('Ctrl4', function($scope) {
$scope.roles = {
a: 'Administrator',
c: 'Customer',
g: 'Guest',
u: 'User',
c: 'Customer',
a: 'Administrator'
u: 'User'
};

@@ -8,0 +8,0 @@ $scope.user = {

@@ -25,3 +25,3 @@ describe('object', function() {

check(a, [1,1,1,1]);
expect(element(s+'pre').text()).toBe('[\n \"g\",\n \"u\",\n \"c\",\n \"a\"\n]');
expect(element(s+'pre').text()).toBe('[\n \"a\",\n \"c\",\n \"g\",\n \"u\"\n]');
});

@@ -28,0 +28,0 @@

@@ -5,3 +5,3 @@ {

"license": "MIT",
"version": "0.6.0",
"version": "0.7.0",
"homepage": "http://vitalets.github.io/checklist-model",

@@ -26,2 +26,5 @@ "author": {

},
"dependencies": {
"angular": ">=1.0.8"
},
"devDependencies": {

@@ -28,0 +31,0 @@ "grunt": "~0.4.1",

@@ -0,1 +1,3 @@

![Bower](https://img.shields.io/bower/v/checklist-model.svg) [![NPM](https://img.shields.io/npm/v/checklist-model.svg)](https://www.npmjs.com/package/checklist-model) ![License](https://img.shields.io/npm/l/checklist-model.svg)
# checklist-model

@@ -10,2 +12,4 @@ AngularJS directive for list of checkboxes

**Checklist-model** solves that task without additional code in controller.
## Usage
You should play with attributes of `<input>` tag:

@@ -58,3 +62,8 @@

### How to make a new release
1. Change the version number in `bower.json` and `package.json`
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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc