0

我已经将 select.js 用于 jquery,它工作正常。

但是,当 Select2 for angular 具有以下版本
Select2 时:https
://github.com/rubenv/angular-select2 Angular:v1.4.9

我收到以下错误

TypeError: element.select2 is not a function
   at link.getOptions (app.js:31163)
   at getSelection (app.js:31231)
   at link.controller.$render (app.js:31250)
   at Object.ngModelWatch (app.js:25987)
   at Scope.$digest (app.js:16229)
   at Scope.$apply (app.js:16501)
   at bootstrapApply (app.js:1822)

这是小提琴:

http://jsfiddle.net/r23mjL01/1/

4

1 回答 1

0

您正在使用过时的库使用 ui-select: https ://github.com/angular-ui/ui-select

于 2016-03-04T07:56:57.210 回答