答案 0 :(得分:1)
尝试下面这样的代码,同样请查看此示例plunker示例。
<强>模板:强>
<select ng-model="item.subject" ng-options="sub.id as sub.name for sub in SubjectList">
<option value="">Select Subject</option>
</select>
<强>控制器:强>
$scope.SubjectList = [{
id: 1,
name: 'English'
}, {
id: 2,
name: 'Mathematics'
}, {
id: 3,
name: 'Chemistry'
}];