Displaying ngModel value for mat-select
The options value
is set to the holiday
object and [(ngModel)]
is set to the date
property of the selected event, in your case holiday.date
.
So the select
looks for the option with value holiday.date
but your options have value holiday
.
The select
[(ngModel)]
has to correlate to the value
of its option
.
[value]="holiday.date"