0

I need --select-- field as a default value with ng-options

 <select ng-model="editedField.operator" ng-options="operator as operator for operator in opConditions"></select>
nagulu vemula
  • 119
  • 1
  • 10
  • 2
    RTFM ~ [*"Optionally, a single hard-coded ` – Phil Jul 31 '15 at 02:33
  • duplicated? http://stackoverflow.com/questions/18194255/how-to-have-a-default-option-in-select-box-angular-js – huan feng Jul 31 '15 at 02:39
  • I'm voting to close this question as off-topic because we don't write code for you, especially without showing some effort on your part. – Rob Sep 06 '15 at 01:07

1 Answers1

0

use like this

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