JSFiddle - React, Tailwind, and code Playground
by phaas
HTML
<div ng-app ng-controller="ListCtrl">
{{1 + 2}}
{{ items }}
{{selectedValue}}
{{ value2}}
<div>
<select ng-model="selectedValue"
ng-options="key as value for (key, value) in items">
</select>
</div>
<div>
<select ng-model="value2"
ng-options="key as value.description for (key, value) in objects">
</select>
</div>
</div>
JavaScript
function ListCtrl($scope) {
$scope.items = {
"foo": "bar",
"code": "description"
};
$scope.objects = {
"RS1": {
description: "Description"
},
"RS2": {
description: "Bar"
}
}
}