我一直在尝试使用AngularDateRangePicker,如以下url所示:
https://www.npmjs.com/package/ngx-daterangepicker-material但是,当行
selected: {startDate: Moment, endDate: Moment};不起作用
我将Moment安装为
npm install moment --save并导入为
import * as moment from 'moment';但我还是得到了
Cannot use namespace 'moment' as a type.发布于 2020-09-23 20:58:49
试着改变这一点
import * as moment from 'moment';至
import moment from 'moment';https://stackoverflow.com/questions/64028443
复制相似问题