openmct/platform/forms/res/templates/controls/select.html
Victor Woeltjen bc3d1270d2 [Forms] Simplify select model value
Simplify select control's interaction with the model;
only store the value associated with the option, not
the name (which is just displayed for the user.)

WTD-530.
2014-11-26 13:23:30 -08:00

9 lines
327 B
HTML

<select class='form-control input select'
ng-model="ngModel[field]"
ng-options="opt.value as opt.name for opt in options"
ng-required="ngRequired"
name="mctControl">
<option value="" ng-if="!ngModel[field]">- Select One -</option>
<span class='ui-symbol arw colorKey'>v</span>
</select>