Angular using p-table for displaying table after getting row data from service.
Two columns viz - Date, CashValue are there
Now after editing CashValue column, how can i get CashValue of the row just below the row that has been edited.
<input> type="text" [(ngModel)]="rowValues.cashValue" (ngModelChange)="valueChange(rowValues.cashValue)" />
For example below is the table
Date Cashvalue
21-Dec-2019 8000
14-Nov-2019 7000
8-Oct-2019 6000
5-Sep-2019 5000
Now on click of save after editing 6000 for Oct month how can i get CashValue for September ?? Similarly if i edit 7000 for November how can i get cashvalue of October ??