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. What do I need to change to make this work with AngularJS?