ЮМ
Size: a a a
ЮМ
ZK
DB
SF
ЮМ
ZK
ZK
ЮМ
ЮМ
S
AM
AK
SF
<ng-container *ngFor="let select of ['select', 'qwe']" [matColumnDef]="select">Такое можешь попробовать? Опять таки, под себя код только поправить нужно
<ng-container *ngIf="select === 'select'; else another">
<mat-header-cell *matHeaderCellDef>
<mat-checkbox
(change)="$event ? masterToggle() : null"
[checked]="selection.hasValue() && isAllSelected()"
[indeterminate]="selection.hasValue() && !isAllSelected()"
[aria-label]="checkboxLabel()"
>
</mat-checkbox>
</mat-header-cell>
<mat-cell *matCellDef="let row; index as i">
<mat-checkbox
(click)="$event.stopPropagation()"
(change)="$event ? selection.toggle(row) : null"
[checked]="selection.isSelected(row)"
[aria-label]="checkboxLabel(i)"
>
</mat-checkbox>
</mat-cell>
</ng-container>
<ng-template #another>
<mat-header-cell *matHeaderCellDef>Test</mat-header-cell>
<mat-cell *matCellDef="let element">Test</mat-cell>
</ng-template>
</ng-container>
AA
BB
Р
AA
AA