<form [formGroup]="myForm" (ngSubmit)="saveFrom(statsForm.value)">
<table class="table table-responsive">
<thead>
<tr>
<th>Col 1</th>
<th>Col 2</th>
<th>Col 3</th>
<th>Col 4</th>
<th>Col 5</th>
<th></th>
</tr>
</thead>
<tbody formArrayName="itemRows">
<tr *ngFor="let row of [1, 2, 3, 4, 5]" app-data-table-row [row]="row"></tr>
</tbody>
</table>
</form>
@Component({
selector: '[app-data-table-row]',
template: `
<td>Hello, World!</td>
<td>Hello, World!</td>
<td>Hello, World!</td>
<td>Hello, World!</td>
<td>Hello, World!</td>
<td>Hello, World!</td>
`
})
export class AppDataTableRow {
@Input('row') row;
}