mirror of
https://github.com/nasa/openmct.git
synced 2024-12-23 06:52:24 +00:00
bc3d1270d2
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.
9 lines
327 B
HTML
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>
|