following the automatic conversion of an old application I find myself with an error that I cannot correct. can you help me please
ng generate @angular/core:control-flow
@for (line of datas; track line) {
...
@for (column of columnsToDisplay; track column; let i = $index) {
...
@if (column.classCss) {
<div [ngClass]="column.classCss(line[column.field])"> // HERE ERROR --> see picture
...
datas
export class TableV2LoadData<T> implements OnInit, AfterViewInit {
public datas: T[];
...
column ( is type of TableColumn)
export interface TableColumn {
...
field?: string;
...
classCss?: () => {};
...