简体   繁体   中英

How to add default --select— field in using ng-options in angularjs

我需要--select--字段作为带有ng-options的默认值

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

use like this

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM