在我的应用程序中我使用jQuery 1.7(不要问为什么:()与angularjs 1.2.5和select2我使用ui-select2 select2与angularjs整合。ui-select2(多个)与jQuery 1.7.x不选择值
更新到用户界面,选择2的最新版本之后,插件停止选择价值......这个问题似乎是由指令加入到增加对angularjs 1.2.x的this commit支持的priority: 1
选项。
演示:Plunker
有没有人遇到过这个问题?
脚本
var app = angular.module('my-app', ['ui.select2'], function() {
})
app.controller('AppController', function ($scope) {
$scope.transition = {};
var results = [{
id: '1',
text: 'One',
type: 1
}, {
id: '2',
text: 'Two',
type: 1
}, {
id: '3',
text: 'Three',
type: 1
}, {
id: '4',
text: 'Fout',
type: 1
}]
$scope.select2Options = {
id: 'id',
data: results,
multiple: true
}
})
HTML:
<body ng-controller="AppController">
<input class="trans-values" ui-select2="select2Options" ng-model="transition.value" style="width: 150px" multiple />
</body>
@IrvinDomininakaEdward财产被添加为修复了另一个问题...所以删除它不会是一个明智的选择..升级jQuery是不是现在的选择......但它仍然抛出一个错误在你的控制台中使用'annot use'在'operator'中搜索'2'中的'0' –