我有一个JSON数组:
"Fred": {
"1": {
"description": "Current Job"
},
"2": {
"description": "Old Job"
}
},
"George": {
"1": {
"description": "Another Current Job"
},
"2": {
"description": "Another Old Job"
}
}
我想要填充的选择字段是这样的列表:
佛瑞德
乔治
我目前的HTML是:
<select id='job' name='job' ng=model='job'
ng-options='label.description as label.description group by tag for (tag, label) in data'>
<option value=''></option>
</select>
但它返回