-
-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TimeLocale #259
Comments
You can try import picker-module in your root application module by calling |
Thank you @AlexanderKiriluyk , worked perfectly! |
I got the same error in angular v9 with ivy and the setLocal method doesn't help me.
|
@Agranom Is there any quick workaround? |
Not sure. I'll update to 9 angular this week and check |
Updated the repo to ng9 and checked. Working without errors. You can see it on the demo page |
@Agranom I see a commit with update. Have you update the NPM version? |
@OLDIN Yes. Try the latest version |
@Agranom I have the same issue on Angular@9.1 and ngx-material-timepicker@5.5.0. |
Temporary fix, but very badly This can be fixed by explicitly specifying TIME_LOCALE in your app.module.ts:
Full example with import:
|
@mahdiprog can you provide with a code snippet how you use it, because it works well with ng9 for me |
For now it fixes by importing |
Seems to be fixed in v5.5.2 |
ERROR NullInjectorError: R3InjectorError(AppModule)[InjectionToken TimeLocale -> InjectionToken TimeLocale -> InjectionToken TimeLocale]:
NullInjectorError: No provider for InjectionToken TimeLocale!
What is TimeLocale and where can I find it?
The text was updated successfully, but these errors were encountered: