如何在angularjs中使用ng-options添加默认的--select--字段

时间:2015-07-31 02:30:49

标签: angularjs ng-repeat angularjs-ng-options

我需要 - 选择 - 字段作为使用ng-options的默认值

 <select ng-model="editedField.operator" ng-options="operator as operator for operator in opConditions"></select>

1 个答案:

答案 0 :(得分:0)

像这样使用

 <select ng-model="editedField.operator" ng-options="operator as operator for 
 operator in opConditions">
<option value>Select</option>
</select>