title: How to bind a data in ng-repeate with different index
body: <p>My json data :</p>
  
  <pre><code>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}]}]
  </code></pre>
  
  <p>html:</p>
  
  <pre><code>&lt;div ng-repeat="x in ?????" &gt;  &lt;input&gt;{{ x.amount}}&lt;/input&gt;&lt;/div&gt;
  </code></pre>
  
  <p>Here i want to bind all the (amount) debit value in single grid as input field and if, i tried change input field (amount value) it should reflect in original json. Please help me to solve this issue. Thanks in advance.</p>
  
  <p>my expected output in grid:</p>
  
  <pre><code>1
  2
  3
  4
  5
  6
  </code></pre>