Hello,
I need help with getting values from array into comma separated list.
I have select tag: <select ng-model="selected_item" name="select"
id="gallery_list" ng-options="v as v.Title for (k, v) in Items"></select>
now if I need to get selected items tags with {{selected_item.Tags}} it
gives me an array: {"0":" Test Tag 1","1":"Test Tag 2"}
But since i need to display this list as input value, I don't know how to
iterate the values in given array:
<input type="text" name="Tags" value="{{selected_item.Tags}}"
placeholder="Tag, Tag 2"/>
Snippet what I have is like this:
<select ng-model="selected_item" name="select" id="gallery_list"
ng-options="v as v.Title for (k, v) in Items"></select>
<input type="text" name="Tags" value="{{selected_item.Tags}}"
placeholder="Tag, Tag 2"/>
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.