Angular 如何使用打底禁用p日历中的过去日期选择?

Angular 如何使用打底禁用p日历中的过去日期选择?,angular,angular5,primeng,primeng-calendar,Angular,Angular5,Primeng,Primeng Calendar,我正在使用打底p-日历 我有一个要求,就是不要向API发送过去的日期 所以我想禁用过去日期选择 如果有人知道,请评论 提前感谢文档参考: 在你的.html文件中 通过ts var today = new Date(); let yesterday = new Date($today); yesterday.setDate($today.getDate() - 1); 文件参考: 在你的.html文件中 通过ts var today = new Date(); let yesterday =

我正在使用打底p-日历 我有一个要求,就是不要向API发送过去的日期

所以我想禁用过去日期选择

如果有人知道,请评论

提前感谢

文档参考:

在你的.html文件中

通过ts

var today = new Date();
let yesterday = new Date($today);
yesterday.setDate($today.getDate() - 1);
文件参考:

在你的.html文件中

通过ts

var today = new Date();
let yesterday = new Date($today);
yesterday.setDate($today.getDate() - 1);