Closed cannibalcow closed 7 years ago
My bad. I had defined a date format but not provided moment. Strange that it worked in previous versions.
I have included momemt js in my angular 2 project. Still I get the above error while selecting Ng2DatetimePickerComponent. How did you resolve it?
Sorry, can't help you. I'll reopen the issue so that someone else can answer it.
The default format was good enough for me so I didn't define any format. I figured out that the default format never use momemt js.
@vsehrawat You should include it in <script>
tag, not with import
as you see in this example, https://github.com/ng2-ui/ng2-datetime-picker/blob/master/app/index.html#L7
Maybe this is not a bug. Only user error. But I can't figure out whats wrong. Updated angular from 2.2 to 2.3 and zone.js from 0.6.23 -> 0.7.2
I do not use momentjs in the project