[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.
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
<select class='form-control input select'
|
<select class='form-control input select'
|
||||||
ng-model="ngModel[field]"
|
ng-model="ngModel[field]"
|
||||||
ng-options="o.name for o in options"
|
ng-options="opt.value as opt.name for opt in options"
|
||||||
ng-required="ngRequired"
|
ng-required="ngRequired"
|
||||||
name="mctControl">
|
name="mctControl">
|
||||||
<option value="" ng-if="!ngModel[field]">- Select One -</option>
|
<option value="" ng-if="!ngModel[field]">- Select One -</option>
|
||||||
|
|||||||
Reference in New Issue
Block a user