如何选择ng选项选择angularjs?
编辑产品时,我希望自动选择此如何选择ng选项选择angularjs?,angularjs,select,ng-options,Angularjs,Select,Ng Options,编辑产品时,我希望自动选择此ng选项。我该怎么做 <div ng-if="field.name=='ProductId'" class="input-group inputFill"> <select ng-disabled="defaultSaveButtons[$index]" class="form-control inputFill2" ng-model="field.value" ng-o
ng选项
。我该怎么做
<div ng-if="field.name=='ProductId'" class="input-group inputFill">
<select ng-disabled="defaultSaveButtons[$index]"
class="form-control inputFill2"
ng-model="field.value"
ng-options="product.id as product.name for product in dropdown.productOptions | orderBy:'name'
track by product.id ">
</select>
</div>