I have the following list:
"List": {
"lorem": 127,
"ipson": 5.5,
"dolor": 29,
"sit": 19}
Next, I am utilizing the ng-repeat code below to construct a table with input fields:
<table>
<tr ng-repeat="(item, weight in settings.list">
<th>
<input ng-model="item"></input>
</th>
<th>
<input ng-model="weight"></input>
</th>
</tr>
</table>
My main goal is for the ng-model to update the parent scope, but currently, I am unsure of how to achieve this.