*ngFor on ng-template outputs nothing Angular2
I think what you want is
<ng-container *ngFor="let xb of tempData">
or
<ng-template ngFor let-xb [ngForOf]="tempData">
For getting index as well: <ng-template ngFor let-xb [ngForOf]="tempData" let-index="index">