I have a mat-table in which I have to put a hyperlink on each column value of the table and pass the id value to the API. For that I tried wrapping the column value inside tag but that didn't work . <mat-header-cell *matHeaderCellDef mat-sort-header> ID <mat-cell *matCellDef="let row">{{row.projectId}} I then tried to test using a button in that place and passing the id on (click) event and it worked . But i want it to be be hyperlink tag , not a button .
<ng-container matColumnDef="Id">
<mat-header-cell *matHeaderCellDef mat-sort-header>
ID
</mat-header-cell>
<mat-cell *matCellDef="let row"><button (click)="sendCall(row.Id)">{{row.Id}}</button> </mat-cell>
</ng-container>
But I want it to look something like this and be able to pass the value on click - Can anyone please help on this ?