Here is what seems to be bothering a lot of people (including me). When using the ng-options directive in AngluarJS to fill in the options for a <select> tag I cannot figure out how to set the value for an option. The documentation for this is really unclear
When I use ng-options inside select tag like this =>
<select ng-options="cat as cat.name for cat in categories" ng-model="selectedCategory" name="category" class="form-control"></select>
I get the options like this =>
<option label="Mobile" value="object:5">Mobile</option>
instead I want it like this =>
<option value="Mobile">Mobile</option>