I am new to angular js. Now I have an input where I have implemented a token field. Now, the value
attribute of the input box has values in an array. Now I don't know how we can use that array in the html
. Like
value="abc,pqr"
This works , But I have an array and that array I need to use in the html
.
<div class="form-group">
<label for="inputEmail3" class="col-sm-2">Should</label>
<div class="col-xs-5">
<input name="should"
id="should"
type="text"
value=""
placeholder="should requirement"
class="form-control setmargin">
</div>
</div>
$scope.somevalues = ['abc','pqr','hhhh'];
This values are coming from the ajax call. Now I have bootstrap tokenfield so I need to have all this values in that input box . How can I use this array values in the html value atttibute ?