Not sure why my *ngFor loop is printing nothing out. I have the following code in an html file:
相关标签:
-
2020-12-08 13:39
I think what you want is
<ng-container *ngFor="let xb of tempData">
or
<ng-template ngFor let-xb [ngForOf]="tempData">
-
2020-12-08 13:51
For getting index as well: <ng-template ngFor let-xb [ngForOf]="tempData" let-index="index">