-
Notifications
You must be signed in to change notification settings - Fork 337
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
No provider for TreeviewI18n! #19
Comments
Add the following to your appropriate module: Import section: import {
TreeviewModule,
DropdownTreeviewComponent,
TreeviewConfig,
TreeviewI18nDefault,
TreeviewI18n,
DefaultTreeviewEventParser,
TreeviewEventParser
} from "ngx-treeview"; and in the provider declaration: providers: [
TreeviewConfig,
{ provide: TreeviewI18n, useClass: TreeviewI18nDefault },
{ provide: TreeviewEventParser, useClass: DefaultTreeviewEventParser }
] If you only add the Hope that does it for you. |
Use |
Hi! I'm using TreeviewModule.forRoot() but I'm having this problem |
I'm following the page instructions to use "ngx-dropdown-treeview" and I've been taking this error:
No provider for TreeviewI18n!
Can someone help me?
Thanks.
The text was updated successfully, but these errors were encountered: