答案 0 :(得分:1)
这将有效: HTML
<div ng-controller="SimpleController">
<select ng-model="item.category" ng-options="category as category.name for category in categories track by category.id">
</select>
<br />Item: {{item | json}}
</div>
在JS中
var app = angular.module("partnerModule", []);
app.controller("SimpleController", function($scope) {
$scope.item = {category: {name:'Cat1', id: '1'}, name : "Item name"};
$scope.categories = [{name:'Cat1', id: '1'}, {name: 'Cat2', id: '2'}, {name:'Cat3', id: '3'}];
});