I have a snippet of code that iterates through data from stacklist_table, which is a JSON array, and displays it in a table format. The stacklist_table contains a full list of objects, but I only need a subset of these objects so I have applied some filters using pipes. The final result is stored in #stacklist, which is then used to display columns and rows.
<table class="table" [mfData]="stacklist_table | selectedcolumn | search : searchQuery | filter: addFilter : selected" #stacklist="mfDataTable">
<thead>
<tr>
<th *ngFor="let colValues of stacklist.data | column: '' : ''">
<mfDefaultSorter by="{{colValues}}">{{colValues|translate}}</mfDefaultSorter>
</th>
</tr>
</thead>
<tbody>
<tr draggable *ngFor="let stack of stacklist.data" [dragOverClass]="'drag-over-border'" [dragData]="stack" [class.active]="checkIfStackElementIsSelected(stack)" (click)="setStacklistRow(stack)">
<td *ngFor="let rowValues of stack | row">{{ rowValues }}</td>
</tr>
</tbody>
</table>
Is it possible to access the value stored in #stacklist in my backend TypeScript file? I require the final version of stacklist after all the filters have been applied in the TypeScript file. How can I achieve this?