I have an array with the strings (not objects) And I binded them to a Select control using AngularJS But I faced with a problem to set up a default setting because my array contains the strings, not the objects. How can I do it in the most correct way?
This is what I got:
var genders =["Male", "Female"];
<select data-ng-options="o.Name for o in genders track by o.Id"
data-ng-model="selectedCustomer.Gender"
</select>