ng2-datepicker 2.1.6 not working with angular 2.4.0

150 Views Asked by At

I was using ng2-datepicker:

"ng2-datepicker": "^1.8.3",

That is compatible with my angular project but that plugin does not have minYear and maxYear options, that's why I need to update datePicker plugin to

 "ng2-datepicker": "^2.1.6",

but it is showing error to my projects

Error:

DatePickerModule is not export member of ng ng2-datepicker

DatePickerOptions is not export member of ng ng2-datepicker

I added NgDatepickerModule but it also not compatible with my project.

0

There are 0 best solutions below