Here is the code snippet:
<select ng-model="group" ng-options="g.key for g in groups"></select>
Even though $scope.groups
consists of a map like this: {'a':'', 'b':'', 'c':''}
I want the select to display the keys of the map: a, b, c
Currently, it doesn't select anything.
How can I modify the ng-options
?
UPDATE 1
g for g in Object.keys(groups)
also does not work.