I would like to use select2 with angularjs and I have data in the form of
e.g.
tags=[{"id": "01","text": "Perl"},{"id": "02","text": "Java"},{"id": "03","text": "JavaScript"},{"id": "04","text": "Scala"}];
setting tags in this form works.
But setting data in this form doesn't work e.g [{"id": "02","text": "Java"}];
Because of data binding issues (angular-ui) -> is it possible to set the 'data' in this form ??
BTW,It should also possible to create new tags... (like standard tag behaviour)
Now I'm only able to use set the preselected tags in the form of ["01","02"] via 'data'
Can anybody of you give me a hint???
TIA