kbanman / selectize-ng

Selectize directive for AngularJS with two-way bindings for both values and options
MIT License
19 stars 7 forks source link

Add an array of items programmatically while loading a view #7

Open jagged3dge opened 9 years ago

jagged3dge commented 9 years ago

New to AngularJs, groping around with directives...

I wonder if it's possible to add a set of default values to the selectize element, for example in the tagging mode?

It's a method of the selectize object (docs), not sure how to invoke that so as to allow items to be added in a controller.