Question 1:
Is there a way to set a default value using ng-option when the data is not in an array format? It seems simple when working with arrays, as I can easily do:
select = $scope.items[0];
You can see a Demo here.
Question 2:
<select ng-model="selected" ng-options="name for (name, value) in items"></select>
I'm confused about how this actually works.^
In my controller, I have a key-value object structured like this:
$scope.items = {
'one': 30,
'two': 27,
'three': 50,
'four': 15,
'five': 27,
'six': 30
};