3

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/

1
  • 2
    I believe you should add jQuery before angular and select2 library along with the angular directive, you are just missing the actual code and select2 function is not included Commented Aug 24, 2015 at 12:38

1 Answer 1

1

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

Sign up to request clarification or add additional context in comments.

1 Comment

Is there any updates for this issue, Iam also facing the same issue mentioned in the jsfiddle.net/r23mjL01/1. Iam using select2-v1.4.3

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.