在离子3和角5中使用日历

时间:2019-05-17 13:42:00

标签: ionic3 angular5

我发现了这个https://devdactic.com/ionic-calendar-angular-calendar/,它可以帮助您在ionic3中实现日历。

我遵循了每个步骤,但是当我import CalendarModule.forRoot()时,出现此错误:

  

calendar.module.d.ts(23,20):未提供“ dateAdapter”的参数。

有什么办法解决这个问题吗?

我正在使用离子3和角5

这是我的package.json

   "dependencies": {
"@angular/animations": "5.2.11",
"@angular/common": "5.2.11",
"@angular/compiler": "5.2.11",
"@angular/compiler-cli": "5.2.11",
"@angular/core": "5.2.11",
"@angular/forms": "5.2.11",
"@angular/http": "5.2.11",
"@angular/platform-browser": "5.2.11",
"@angular/platform-browser-dynamic": "5.2.11",
"@ionic-native/core": "~4.20.0",
"@ionic-native/splash-screen": "~4.20.0",
"@ionic-native/status-bar": "~4.20.0",
"@ionic/storage": "2.2.0",
"ionic-angular": "3.9.5",
"ionic3-calendar-en": "^1.1.3",
"ionicons": "3.0.0",
"rxjs": "5.5.11",
"sw-toolbox": "3.6.0",
"zone.js": "0.8.29"
   },
  "devDependencies": {
"@ionic/app-scripts": "3.2.2",
"typescript": "~2.6.2"
 },
 "description": "An Ionic project",
  "config": {
 "ionic_copy": "./config/copy.config.js"
}

0 个答案:

没有答案