I have a select box with options being generated like this:
<select ng-model="module.sectionID">
<option ng-repeat="section in sections" value="{{section.$id}}">
{{section.title}}
</option>
</select>
As you can see the value of the option is arbitrary, so I can't set the default value like this:
ng-init="module.sectionID='this value will change'"
I want the default value to be the first option in the select box, right now it is always a null / blank value, until they make a selection, which isn't very user friendly.
module.sectionID = sessions[0].$id