2016-03-04 35 views
0

我已經使用jQuery的select.js,它工作正常。TypeError:element.select2不是函數

但是,當選擇二角形低於版本
選擇二:https://github.com/rubenv/angular-select2
角: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/

回答