I have a dropdown and its being populated correctly by three recordes d1, d2, d3 and their values are 0,1,2
<div class="form-group">
<label for="Distance" class="col-md-3">
Distance :
</label>
<div class="col-md-4">
<select id="Distance" name="Distance" class="form-control selectwidthauto" ng-model="ModelData.Distance"
ng-options="distance.Code as distance.Description for distance in DropdownData.Distances">
</select>
</div>
</div>
Why the dropdown selection is not working whereas I am getting the value of {{ModelData.Distance}} as 2 on the html.