Когда я добавляю следующее: я получаю следующее сообщение: Не удается прочитать свойство 'template' из неопределенного
.....
<ng-container matColumnDef="Price">
<mat-header-cell *matHeaderCellDef >Price</mat-header-cell>
<mat-cell *matCellDef="let prod">{{prod.Price}}</mat-cell>
<mat-footer-cell></mat-footer-cell>
</ng-container>
<ng-container matColumnDef="LineTotal">
<mat-header-cell *matHeaderCellDef>Total</mat-header-cell>
<mat-cell *matCellDef="let prod"> {{prod.LineTotal}} </mat-cell>
<mat-footer-cell *matFooterCellDef="let prod">{{prod.LineTotal}}
</mat-footer-cell>
</ng-container>
<mat-header-row *matHeaderRowDef="displayedColumns"></mat-header-row>
<mat-row *matRowDef="let row; columns: displayedColumns;"></mat-row>
<**mat-footer-row** *matFooterRowDef="displayedColumns"></mat-footer-row>
Если я удалю строку mat-footer-row, таблица будет отображена правильно.displayColumns: string [] = [];... vm.displayedColumns.push ('Price');