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

Popular posts from this blog

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

javascript - Confirm a form & display message if form is valid with JQuery -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -