214/5000 I am currently facing an issue in Angular where I am attempting to generate an excel file. Within the file, there is a "Day" column that is meant to display numbers 1 through 31. However, when attempting this, only the last number (31) is being printed.
dataExcel : any;
days = [1, 2, 3, 4, 5, 6, 7, 8, ... , 31];
for(let i = 0 ; i <32; i++){
this.dataExcel = [{
Day: this.days[i]
}]
}
I am seeking advice on how to successfully display all numbers within the range in the excel file.