I have the following data items, that i would like to bind to a html select element and show the available answers
var array = [{ name: 'bob', isSelected: false}, {name: 'james', isSelected: false}];
The isSelected property on each item will either be true or false. If true, i want that item to be selected in the select element.
I also need the isSelected property to be updated to true/false depending on whether that item is selected or not.
I have tried using this, but nothing displays
<select ng-options="a.name for a in array">
</select>
Can someone please help?