Dynamically loading columns and data in to table in Angular 2
Instead of using
<tr *ngFor="#data of data">
You should use
<tr *ngFor="#data of data" *ngModel="data[column]">
Instead of using
<tr *ngFor="#data of data">
You should use
<tr *ngFor="#data of data" *ngModel="data[column]">