AngularJS - Getting the Value from the first column of a row in a table on change event -
please see plunker here demonstrates issue:
i want display corresponding english value (first column) given row when of values changed. example 'uploaded' should displayed in pop-up when of values on second row changed.
i have gotten far in example, not quite there:
<textarea ng-model="res.value" ng-change="vm.changed(vm.resourcegridresources.resources[$index].resources[0].value)" style="min-width: 300px"></textarea>
for exemple. not use $index
$parent.$index
. refers $index
of previous ng-repeat
.
<textarea ng-model="res.value" ng-change="vm.changed(vm.resourcegridresources.resources[$parent.$index].resources[0].value)" style="min-width: 300px"> </textarea>
Comments
Post a Comment