【发布时间】:2018-07-29 21:24:58
【问题描述】:
我有一个对象数组,这是我的对象结构:
[{
"_index": "bank",
"_type": "account",
"_id": "25",
"_score": 1,
"_source": {
"account_number": 25,
"balance": 40540,
"firstname": "Virginia",
"lastname": "Ayala",
"age": 39
}
}, ... ]
我需要去掉_index、_type、_id、_score(只显示_source) 我想在每个键之前显示一个包含值的输入:
account_number:[25]
余额:[40540]......
<tbody>
<tr ng-repeat="row in ctrl_hits.data | limitTo: row._index+row._type+row._id+row._score">
<td> {{row.key}} :
<input type="text"
ng-value="row.value">
</td>
</tr>
</tbody>
NW:我知道,我正在编写愚蠢的代码,只是为了解释我的需求。
【问题讨论】:
标签: angularjs angularjs-ng-repeat