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

前端 未结 6 561
清酒与你
清酒与你 2021-02-07 20:32

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:43

    I used

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

提交回复
热议问题