angular-select2 icon indicating copy to clipboard operation
angular-select2 copied to clipboard

TypeError: element.select2 is not a function

Open khirthane opened this issue 9 years ago • 6 comments
trafficstars

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/

khirthane avatar Mar 04 '16 07:03 khirthane

Are there any updates with this problem?

Kesidi avatar Mar 16 '16 09:03 Kesidi

Did you load the select2 library?

rubenv avatar Mar 16 '16 10:03 rubenv

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)

Kesidi avatar Mar 16 '16 10:03 Kesidi

Select2 4.x isn't supported yet, see #18.

You need a 3.5.x version.

rubenv avatar Mar 16 '16 10:03 rubenv

thx

Kesidi avatar Mar 16 '16 10:03 Kesidi

where can I download version 3.5?

FernandoAguilarR avatar Mar 21 '18 20:03 FernandoAguilarR