multi-select-angularjs
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -21,10 +21,9 @@ angular.module('jq-multi-select', []). | ||
init(element, scope.msOptions); | ||
scope.$watch(function () { | ||
return (ngModel && ngModel.$modelValue) || scope.multiSelect; | ||
}, function () { | ||
refresh(element); | ||
}); | ||
} | ||
}; | ||
scope.$watch(function () { | ||
return (ngModel && ngModel.$modelValue && ngModel.$modelValue.length !== 0) || scope.multiSelect; | ||
}, function (n) { | ||
refresh(element); | ||
}); | ||
} | ||
}; | ||
}]); |
{ | ||
"name": "multi-select-angularjs", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "AngularJS directive for the \"multi-select\" jQuery plugin", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -10,6 +10,17 @@ [![https://nodei.co/npm/multi-select-angularjs.png?downloads=true&downloadRank=true&stars=true](https://nodei.co/npm/multi-select-angularjs.png?downloads=true&downloadRank=true&stars=true)](https://www.npmjs.com/package/multi-select-angularjs) | ||
__Table of content__ | ||
- [Demo](#demo) | ||
- [Depenecies](#depenecies) | ||
- [Installation](#installation) | ||
- [Options / Events](#options--events) | ||
- [Contributors](#contributors) | ||
- [License](#license) | ||
## Demo | ||
<a href="https://moshfeu.github.io/multi-select-angularjs/demo/" target="_blank">Demo</a> | ||
Depenecies | ||
============ | ||
## Depenecies | ||
- jQuery 1.8+ | ||
@@ -19,8 +30,8 @@ - angularjs | ||
Optinoal | ||
============ | ||
### Optional | ||
- jquery.quicksearch.js ([docs](http://loudev.com/) - find the title `Searchable`) | ||
Installation | ||
============ | ||
## Installation | ||
```shell | ||
@@ -41,4 +52,3 @@ npm install multi-select-angularjs --save | ||
Usage | ||
============ | ||
## Usage | ||
@@ -55,4 +65,3 @@ **javascript** | ||
options / events | ||
--------------------------- | ||
## Options / Events | ||
@@ -74,4 +83,7 @@ Pass the options ([docs](http://loudev.com/) - find the title `options`) object into `ms-options` attribute. | ||
License | ||
============ | ||
[MIT](http://opensource.org/licenses/MIT) License. | ||
## Contributors | ||
[@bigtree6688](https://github.com/bigtree6688) | ||
[@flycal6](https://github.com/flycal6) | ||
## License | ||
[MIT](http://opensource.org/licenses/MIT) License. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
35946
85