1

I'm trying to use the angular-ui-select2 module within another directive but I receive the following error:

query function not defined for Select2 undefined

When I place the following code in a page of it's own, it works fine:

<input ng-model="select2" data-ui-select2="select2Options" type="hidden" />
1
  • Can you show us your directive code? Commented Apr 17, 2015 at 2:51

1 Answer 1

1

I was able to resolve this issue by my code from the link function to the controller function in my directive.

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

Comments

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.