我选择了 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>
在goal
模型中我有counter_goal_ids
像[1,2,3,4,5,6]
. 如何选择包含在 中的选项goal.counter_goal_ids
?