I have a choice with ng-repeat:
<select class="span5 ui-select2 id="goal_{{goal.id}}" multiple="multiple"> <option ng-repeat="counterGoal in counterGoals" value="{{counterGoal.id}}">{{counterGoal.name}}</option> </select>
in goal , the model has an array of counter_goal_ids , for example [1,2,3,4,5,6] . How to choose options included in goal.counter_goal_ids ?
source share