Skip to content
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

Cannot use with lazy loading and child module #54

Open
devobenavidez opened this issue Jul 5, 2020 · 1 comment
Open

Cannot use with lazy loading and child module #54

devobenavidez opened this issue Jul 5, 2020 · 1 comment

Comments

@devobenavidez
Copy link

devobenavidez commented Jul 5, 2020

Hello, i moved my app from single module with app.module to multiple modules to can use lazy loading, but i dont know id i was importing wrong the references, perhaps if you hava an example with lazy loading, because the app don't throws errors, but the timeline is not working.

this is app.module

`
...
import { BrowserAnimationsModule } from "@angular/platform-browser/animations";
import { MglTimelineModule } from "angular-mgl-timeline";

...

@NgModule({
declarations: [
...
],
imports: [
...
MglTimelineModule ,
...
],
exports: [
...
MglTimelineModule ,
...
],
})
`

and in the child module i import the MglTimelineModule normal and set it in the declarations array.

please if you could provide to me an example with lazy loading i'll be very thankful.

@rkchaudhary4
Copy link

I did the lazy loading in angular version 11 and it worked. Try upgrading your angular version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants