I'm using the td-data-table from the teradata/covalent framework but independet from the framework I'd like to use *ngFor in an like this:
<ng-template *ngFor="let column of columns" tdDataTableTemplate="{{column.name}}" let-value="value">
<div>
<span>{{value.content}}</span>
<br>
<span *ngIf="enabler">{{value.subContent}}</span>
</div>
</ng-template>
I've read that the syntax for using *ngFor with an is different, so I've tried this:
<ng-template ngFor let-column [ngForOf]="columns" tdDataTableTemplate="{{column.name}}" let-value="value">
<div>
<span>{{value.content}}</span>
<br>
<span *ngIf="enabler">{{value.subContent}}</span>
</div>
</ng-template>
Is it the framework which is preventing the code to work or have I written something wrong?