我已经将 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)
这是小提琴: