EvanOxfeld / angular-selectize.js

Angular Selectize directive for a hybrid textbox + <select> box. Supports ngOptions and two-way bindings.
MIT License
34 stars 16 forks source link

Got 'TypeError: undefined is not a function' for initial load #24

Open cheahkhing opened 10 years ago

cheahkhing commented 10 years ago

I followed the example on plunkr, but somehow i got this exception on init. It seems like it doesn't get through 'initSelectize()'. keep throwing the same error on the line "element.selectize(opts)". Anybody can get it working for this latest version?

Here's my html:

Thanks.

w33ble commented 9 years ago

I had the same issue. Took me a while to figure out what was going on. For me, I was not including the selectize library - once I added it, everything worked as expected. This was with 1.4.3.