dynamic colspan in angular code example
Example: dynamic colspan in angular
<tr *ngFor="let item of items">
<th [attr.colspan]="item.colspan">{{ item.name }}</th>
</tr>
<tr *ngFor="let item of items">
<th [attr.colspan]="item.colspan">{{ item.name }}</th>
</tr>