angular-select2
angular-select2 copied to clipboard
TypeError: element.select2 is not a function
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:
http://jsfiddle.net/r23mjL01/1/
Are there any updates with this problem?
Did you load the select2 library?
I have got this error after load select2 library "The select2('data') method was called on an element that is not using Select2". angular version 1.3.15, Select2 version 4.0.2 here is example how I use it %select2(ng-model="country" s2-options="country.id as country.name for country in countries" multiple)
Select2 4.x isn't supported yet, see #18.
You need a 3.5.x version.
thx
where can I download version 3.5?