I'm creating a scheduler/calendar, but I have to built my own from scratch.
I have an array of days per month. For example May: 31 days. Now I want to seperate that array into weeks, and then display using a table. (like a calendar)
Please take into consideration that later on, I will have to make these 'days' clickable to be able to perform further actions on them.
What I tried:
I tried to do a nested array weeks[week_number][day_number]. However when trying to show the days the following code does not work at all. It shows nothing.
<tr *ngFor="let week of weeks; let i = index">
<td *ngFor="let day of week.days; let j = index "> {{ day }}</td>
I have looked up StackOverflow but could not find anything.