I have this data. How to display in table when service value is true? Something like this below.
Table should be:
ID Services
5 service1,service3
Data:
{
id: 5,
services:
{
service1: true,
service2: false,
service3: true,
}
}
html
<ng-container matColumnDef="id">
<mat-header-cell *matHeaderCellDef mat-sort-header>QTY</mat-header-cell>
<mat-cell *matCellDef="let purchaseOrder">{{purchaseOrder.id}}</mat-cell>
</ng-container>
<ng-container matColumnDef="services">
<mat-header-cell *matHeaderCellDef mat-sort-header>Equipment Ordered</mat-header-cell>
<mat-cell *matCellDef="let purchaseOrder">{{purchaseOrder.services}}</mat-cell>
</ng-container>