Hey, I am dealing with a list that dynamically retrieves barcodes from local storage.
COMPONENT FILE
<div class="scan-list">
<table *ngFor="let item of fsubList">
<tr>
<td><h3>Reel No: {{item.barcodeno}}</h3></td>
<td><h3>Date: {{item.datetime}}</h3></td>
</tr>
<tr>
<td><h3>Vendor: {{item.vendor}}</h3></td>
<td class="red"><a (click)="viewdet()">View Details</a></td>
</tr>
</table>
</div>
I aim to extract the value in {{item.barcodeno}}
of the clicked row using viewdet()
, and then pass it to the ts file within the function viewdet()
for further processing.