ng-options with object data source ng-options with object data source angularjs angularjs

ng-options with object data source


This is kind of strange, but it seems like you need to put a space after for. This works:

<select ng-model="type" ng-options="k as v for (k, v) in types">  <option value="">Select Type</option></select>