【发布时间】:2020-05-12 21:25:48
【问题描述】:
我很早就在使用<mat-calendar>。我现在尝试设置maxDate(即)禁用所有以前的日期。但现在我发现现在支持 .
代码
<mat-calendar name="appointment_date" [maxDate]="maxDate" [selected]="selectDate" (selectedChange)="onSelect($event)">
</mat-calendar>
maxDate = new Date();
我也尝试了[max],但没有成功。请帮帮我
【问题讨论】: