I would like to set different text / value for a dropdown I have with angularJS. Currently both the text and the value are same by using this syntax:
<select name="flightNum" class="form-control" ng-model="model.flight"
ng-options="v.Value as v.Text for v in flights" required></select>
I tried this approach:
<select name="flightNum" class="form-control" ng-model="model.flight"
ng-options="v.Value as v.Text for v in flights" required>
<option ng-repeat="v in flights" value="{{v.Value}}"> {{v.Text}}</option>
</select>
But I've got the same text/value combination. Any idea what do I need to change to make this working with angularJS?
Thanks in advance, Laziale