Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error : d.select2 is not a function while using angular-select2.js

Tags:

angularjs

So guys I have tried select.js for jquery, it works fine. Now I am trying select.js for angular but getting this error:

TypeError: d.select2 is not a function

Here's the fiddle:

http://jsfiddle.net/r23mjL01/1/

like image 692
Sid Avatar asked Aug 24 '26 19:08

Sid


1 Answers

You are using Select2 4.0, aren't you?

You should be using the code that is located in this other branch: https://github.com/motin/angular-select2/tree/select2-4.0-support-wip

Check out this issue: https://github.com/rubenv/angular-select2/issues/18

like image 80
acalvo Avatar answered Aug 26 '26 10:08

acalvo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!