Closed Defmetalhead closed 4 years ago
public calendarDate = { begin: new Date(2020, 1, 1), end: new Date(2020, 1, 5) };
<input matInput (dateChange)="handleDateChange($event.value)" [min]="minDate" placeholder="Choose a date" [value]="calendarDate" [disabled]="activityEngineService.isLoadingStream.value" [satDatepicker]="datePicker" class="calendar-input">
I just want dates to be pre-selected when opening the calendar.
please double-check your code. Initial value seems correct
public calendarDate = { begin: new Date(2020, 1, 1), end: new Date(2020, 1, 5) };
<input matInput (dateChange)="handleDateChange($event.value)" [min]="minDate" placeholder="Choose a date" [value]="calendarDate" [disabled]="activityEngineService.isLoadingStream.value" [satDatepicker]="datePicker" class="calendar-input">
I just want dates to be pre-selected when opening the calendar.