I have used select.js for jquery, it works fine.
But, when the Select2 for angular with below versions
Select2 : https://github.com/rubenv/angular-select2
Angular : v1.4.9
Iam getting the below error
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)
Here's the fiddle:
您正在使用过时的库,请使用ui-select: https : //github.com/angular-ui/ui-select
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.