angularjs - How to select option in select list Angular JS? -
i have select list reproduced ng-options
:
<select class="form-control" ng-options="i.id i.os_version in devices track i.id" ng-model="selected_version_os_to" ng-change="selectversionto(selected_version_os_to)"> </select>
it generates options as:
<option label="10.3" value="1">10.3</option>
how select option value == 1
or number?
i tried in select tag
:
ng-selected="i.id == 1"
Comments
Post a Comment