-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: n.chosen is not a function #39
Comments
Hey @eugenevk, I remember there was some issue with bower. I recommend using the library directly. (by cloning the repo into your vendor or lib directory) |
Hi @adityasharat, unfortunately that doesn't solve it. Same error. I copied the master into my lib directory. |
Have you included |
I have now included this:
But that returns the following error:
|
The issue is the order I suppose
|
I had the same issue. I didn't realize the chosen library wasn't bundled in this angular-chosen directive until I looked at the example. So to fix I had to do this. `` <script src="lib/jquery/jquery-3.2.1.min.js"></script> <script src="lib/jquery-ui/jquery-ui.min.js"></script> <script src="lib/chosen/chosen.jquery.min.js" type="text/javascript"></script> <script src="lib/chosen/docsupport/prism.js" type="text/javascript"></script> <script src="lib/angular-chosen/angular-chosen.min.js" type="text/javascript"></script>`` |
Hi,
I get the above error in my angular MEAN project. Have installed via bower and included dependency:
,'public/lib/angular-chosen-js/angular-chosen.min.js'
and
,'angular.chosen'
Can you advise?
The text was updated successfully, but these errors were encountered: