在 ngx-datatable-column 中使用 ngFor 和 ng 模板

usage of ngFor with ng template in ngx-datatable-column

我的 ngFor 没有显示任何数据,尽管没有堆栈错误或其他问题。

我想知道如何显示我的对象数组 - 称为 "cldbAccounts" - 它必须对象并在同一列中显示它们的两个属性。

那部分我的代码

<ngx-datatable-column *ngIf="mode === 'contract' || mode === 'factorer'" name="CldbAccount" prob="cldbAccount">
   <ng-template let-column="column" height="200" let-onSort="sortFn" ngx-datatable-header-template>
      <span class="datatable-header-cell-wrapper">
      <span class="datatable-header-cell-label draggable" (click)="onSort()">CldbAccount</span>
      </span>
   </ng-template>
   <ng-template ngFor let-cldbAccount [ngForOf]="cldbAccounts">
      {{ cldbAccount.cldbAccount.cldbAccount }} [{{ cldbAccount.debitor.name }}]
   </ng-template>
</ngx-datatable-column>

我也试过这个答案的解决方案 但同样的问题存在

我发现问题只是我的代码中的错字,prob="cldbAccount" 应该是 prop="cldbAccount"