This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
ng-model not binding <select> list values in 1.4.rc2 #11890
Closed
Description
I have a list of static values that are bound to a list and I'm trying to get the list to display the value from the model.
The model value is an integer:
wm.activeResource.ValueType = 0;
Then in the html I'm binding this value to a dropdown list of static values:
{{view.activeResource.ValueType}} <-- correctly displays 0 -->
<!-- list displays empty element --->
<select ng-model="view.activeResource.ValueType">
<option value="0">Text</option>
<option value="2">Markdown</option>
<option value="1">Binary</option>
</select>
This worked fine in v1.3 but in 1.4 the list comes back with no selection. Or, more specifically it has a selection of an injected element:
<option value="? number:0 ?"></option>