📜  stackoverflow ngbdate angular - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:23.258000             🧑  作者: Mango

代码示例1
import {NgbCalendar, NgbDate} from "@ng-bootstrap/ng-bootstrap";
fromDate: NgbDate;
toDate: NgbDate;
constructor(calendar: NgbCalendar) {
    this.fromDate = calendar.getToday();
    this.toDate = calendar.getNext(calendar.getToday(), 'd', 10);
    }