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> 

corrected plunkr


Comments

Popular posts from this blog

ios - MKAnnotationView layer is not of expected type: MKLayer -

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -