Modal Window dropdown is not updating by modal value
When editing a dropdown in a modal window, the dropdowns for the field are not updated with the model values, even though the values appear to be set and maintained.
I am using angular 1.6.4 and ui-bootstrap-tpls-0.14.3.min.js
<select id="selectbasic" name="selectbasic" class="form-control" s ng-model="OWNER_ID">
<option ng-repeat="owner in owners" value={{owner.OWNER_ID}}>{{owner.OWNER_NAME}}</option>
</select>
+3
source to share
1 answer
<select id="selectbasic" name="selectbasic" class="form-control" ng-model="solnData.OWNER_ID"
ng-options="owner.OWNER_ID as owner.OWNER_NAME for owner in owners" ></select>
To overcome the above problem, I used ng-options in the select tag instead of the option tag. This solved my problem and the result would be
0
source to share