I've an array of objects and this is my object structure:
[{
"_index": "bank",
"_type": "account",
"_id": "25",
"_score": 1,
"_source": {
"account_number": 25,
"balance": 40540,
"firstname": "Virginia",
"lastname": "Ayala",
"age": 39
}
}, ... ]
I need to eliminate _index, _type, _id, _score (just displaying _source) and I would like to display ahead of each key an input which contains the value:
account_number: [25]
balance: [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: I know, I'm writing stupid code, just for one reason, to explain my needs.