Why does AngularJS ng-options use label for value instead of just the value itself?
Here is my current code:
<select ng-model="gameDay" ng-options="gameDay for gameDay in gameDayOptions">
This currently displays:
<select ng-model="gameDay" ng-options="gameDay for gameDay in gameDayOptions">
<option value="0">Saturday</option>
<option value="1">Sunday</option>
</select>
However, upon submission (GET), it sends this:
http://www.domain.com/save.php?gameDay=Saturday
I would like it to send this instead:
http://www.domain.com/save.php?gameDay=0