[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:
Victor Woeltjen 2014-11-26 13:23:30 -08:00
parent d7c7e2835f
commit bc3d1270d2

View File

@ -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>