ng-bootstrap/ng-bootstrap"”没有导出的成员“NgbDate

 

'NgbDateStruct' is not assignable to type 'NgbDate'

 

 error TS2339: Property 'after' does not exist on type 'NgbDateStruct'. 

error TS2339: Property 'after' does not exist on type 'NgbDateStruct'. 

error TS2339: Property 'before' does not exist on type 'NgbDateStruct'. 

error TS2339: Property 'after' does not exist on type 'NgbDateStruct'. 

error TS2339: Property 'before' does not exist on type 'NgbDateStruct'. 

error TS2339: Property 'equals' does not exist on type 'NgbDateStruct'.

error TS2339: Property 'equals' does not exist on type 'NgbDateStruct'.

解决:

在component隶属的module导入NgbModule

datepicker

 

https://github.com/ng-bootstrap/ng-bootstrap/pull/2540/commits/e83d56dbcc239a0f04a22f1a0538dc3ad3e32990

 

 

 

https://ng-bootstrap.github.io/#/components/datepicker/examples

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-13
  • 2021-07-17
  • 2022-03-05
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-09-30
  • 2021-05-18
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案