trying to get the 'data-ng-model' set to something unique in each instance of the ng-repeat
You can use list[key][value]
that will be different per item in ng-repeat
how do I access the value of the input field from the compute() function?
Generally you can use ng-model
that automatically fetches input
data.
<div class="row" ng-repeat="(keyAssets, valueAssets) in myCurrentAssets">
<span>{{valueAssets.name}}</span>
<input data-name="myCurrentAssets[keyAssets]['name']"
data-ng-model="myCurrentAssets[keyAssets]['value']"
data-placeholder="myCurrentAssets[keyAssets]['value']"
data-ng-change="compute(myCurrentAssets[keyAssets]['value'])"
/>
</div>
Demo Fiddle