Here is the data from my JSON file:
var jsondata = [{"credit":"a","debit":[{"credit":"a","amount":1},{"credit":"a","amount":2}]},
{"credit":"b","debit":[{"credit":"b","amount":3},{"credit":"b","amount":4},{"credit":"b","amount":5}]},
{"credit":"c","debit":[{"credit":"c","amount":6}]}]
This is the HTML code snippet:
<div ng-repeat="x in ?????" > <input>{{ x.amount}}</input></div>
I am looking to display all the "amount" values from the debit records in a single grid as input fields. Additionally, when I update an amount value in the input field, it should reflect in the original JSON data. Can you help me solve this issue? Thank you in advance.
The expected output in the grid would be:
1
2
3
4
5
6