i have retrieved a JSON array from an API:
items:[{
Name: "Status"
Value: "3"
},{
Name: "Status"
Value: "2"
}, {
Name: "Status"
Value: "1"
}]
then I extract the data
if (dataStatus.Name == 'Status') newDataStatus.Status = dataStatus.Value;
and display the value in my material table
<ng-container matColumnDef="Status">
<th mat-header-cell *matHeaderCellDef mat-sort-header> Status </th>
<td mat-cell *matCellDef="let row"> {{row.Status}} </td>
</ng-container>
However, only numbers are showing in the status row. How can I change Value:"3" to "complete", Value: "2" to "end", and so on?