angular2-select
Advanced tools
Comparing version 1.0.0-alpha.6 to 1.0.0-alpha.7
{ | ||
"name": "angular2-select", | ||
"version": "1.0.0-alpha.6", | ||
"version": "1.0.0-alpha.7", | ||
"description": "Select component for Angular 2 (based on select2 JQuery plugin).", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
@@ -243,9 +243,11 @@ "use strict"; | ||
this.value = value; | ||
// Populate `selection` and `value` arrays. | ||
for (var _i = 0, value_1 = value; _i < value_1.length; _i++) { | ||
var optionValue = value_1[_i]; | ||
var option = this.optionsDict[optionValue]; | ||
option.selected = true; | ||
this.selection.push(option); | ||
for (var item in this.optionsDict) { | ||
if (value.indexOf(item) > -1) { | ||
this.optionsDict[item].selected = true; | ||
} | ||
else { | ||
this.optionsDict[item].selected = false; | ||
} | ||
} | ||
this.updateSelection(); | ||
}; | ||
@@ -252,0 +254,0 @@ SelectComponent.prototype.registerOnChange = function (fn) { |
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
2725
107140
12
2
0