I'm trying to get my data and list it to the mat-table but inside in the mat-dialog i tried it and it won't show the data.
.TS
DeliveryReceipt: DeliveryReceiptDTO[] = [];
displayedColumns:string[] = ['transactionType'];
deliveryReceiptObject: any;
getList() {
this.DeliverySVC.findAll(20, 1).subscribe((response: DeliveryReceiptDTO) => {
this.deliveryReceiptObject = response;
this.DeliveryReceipt = JSON.parse(JSON.stringify(this.deliveryReceiptObject.items))
})
}
.HTML
<table mat-table [dataSource]="DeliveryReceipt">
<ng-container matColumnDef="transactionType">
<th mat-header-cell *matHeaderCellDef>DR NUMBER </th>
<td mat-cell *matCellDef="let element"><span>{{element.transactionType}}</span></td>
</ng-container>
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
<tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
</table>
GET https://localhost/api/DeliveryReceipt/list 500