You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 2, 2018. It is now read-only.
Steps to reproduce and a minimal demo
I could not do a plunkr. I don't know how to do it with webpack loader and typescript support. Sorry.
These are the steps to reproduce it :
init a simple AngularCLI project :
In AppModule, add :
In AppComponent html file, add :
The ngModel bindings works but the field stays empty. I think the issue is here :
https://github.com/ng2-ui/datetime-picker/blob/master/src/datetime.ts#L80
You are waiting for a global moment library and not one imported using an import declaration.
Current behavior
The date-format attribute is ignored as it does not find the moment library which is loaded as an import and not a global.
Expected/desired behavior
Loading the moment library as an import should be the recommended way of handling it.
The text was updated successfully, but these errors were encountered: