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
Hi:
I'm face this problem,when i use "ks-carousel" in my custom module, i will face this problem
"CarouselComponent.html:135 Error: StaticInjectorError(AppModule)[ModalGalleryComponent -> KeyboardService]"
when i use in root module(appmodule),it won't appear this issue
What? forRoot in child module is wrong. This is a common pattern in Angular. Forroot() is only for the root module.
In your example I don't see any forRoot(). You aren't importing the module in your root module.
Please check my example carefully, because it's working and you can copy the configuration. It's also explained in the official documentation website.
Hi:
I'm face this problem,when i use "ks-carousel" in my custom module, i will face this problem
"CarouselComponent.html:135 Error: StaticInjectorError(AppModule)[ModalGalleryComponent -> KeyboardService]"
when i use in root module(appmodule),it won't appear this issue
Angular CLI: 7.0.6
Node: 8.9.4
Angular:
...
Package Version
@angular-devkit/architect 0.10.6
@angular-devkit/core 7.0.6
@angular-devkit/schematics 7.0.6
@schematics/angular 7.0.6
@schematics/update 0.10.6
rxjs 6.3.3
typescript 3.1.6
The text was updated successfully, but these errors were encountered: