When I just simply make a table I did not repeat but added date: "d/M/yyyy"
but when I repeat, how do I check that put the pipe line to get the date format?
when not repeating
<ng-container matColumnDef="deliveryDate">
<th mat-header-cell *matHeaderCellDef mat-sort-header>
Delivery Date
</th>
<td mat-cell *matCellDef="let element">
{{ element.deliveryDate | date: "d/M/yyyy" }}
</td>
</ng-container>
when repeating
<ng-container
*ngFor="let column of columns; let i = index"
[matColumnDef]="column.field"
>
<mat-header-cell
class="columnHighLight"
*matHeaderCellDef
cdkDropList
cdkDropListLockAxis="x"
cdkDropListOrientation="horizontal"
(cdkDropListDropped)="
dropListDropped($event, i)
"
cdkDrag
(cdkDragStarted)="dragStarted($event, i)"
[cdkDragData]="{
name: column.field,
columIndex: i
}"
mat-sort-header
>
{{ column.alias }}
<!-- {{ column.field }} -->
</mat-header-cell>
<mat-cell *matCellDef="let row">
{{ row[column.field] }}
</mat-cell>
</ng-container>