Sign up ×
Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute:

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" />
share|improve this question
    
Can you show us your directive code? – nweg Apr 17 at 2:51

1 Answer 1

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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.