In my controller, I have:
$scope.sizes = {
things: [
'one',
'two'
]
}
and in my HTML, I have
<select ng-options="thing for thing in sizes.things"></select>
The resulting combobox has no values. However, in this case:
$scope.things = ['one', 'two'];
<select ng-options="thing for thing in things"></select>
The resulting combobox shows "one", "two" as its options. Can someone explain why I can't access the array within a $scope object?