當select中一個選項被選擇,該選項將會使用ng-model自動繫結到對應資料上。如果你想設一個預設值,可以像這樣:$scope.selected = $scope.collection[3]。
確定! 回上一頁