How disable all the dates before a particular date in angular?

前端 未结 6 1564
别跟我提以往
别跟我提以往 2021-02-07 20:15

I am building a component (html, css, spec.ts, ts) in angular in which I always want endDate > startDate. I have followed this link https://material.angular.io/components/datepi

6条回答
  •  野性不改
    2021-02-07 20:54

    I used

    [min]="startDate.value"
    and worked like expected (disabled endDate calendar previous dates from selected date in startDate Calendar)

提交回复
热议问题