Necesito fusionar las celdas del año que son iguales en una sola bajo la cual se organizan los meses según el año correspondiente. Intenté obtener el conteo de años y usarlo como valor colspan pero no funcionó
<thead> <tr> <th *ngFor="let colItem of YearGrid">{{colItem.Year}}</th> </tr> <tr> <th *ngFor="let colItem of YearGrid">{{colItem.Month}}</th> </tr> </thead> YearGrid = [ {Month: 'Nov', Year: 2020}, {Month: 'Dec', Year: 2020}, {Month: 'Jan', Year: 2021}, {Month: 'Feb', Year: 2021}, {Month: 'Mar', Year: 2021} ];así que por favor colspan o rowspan
table{ width: 400px } table td,table th{ border: 1px solid red; } <table> <tr> <th colspan="2">Name</th> <th>Age</th> </tr> <tr> <td>Jill</td> <td>Smith</td> <td>43</td> </tr> <tr> <td>Eve</td> <td>Jackson</td> <td>57</td> </tr> </table>