glutengo / angular-mgl-timeline

Timeline component for Angular
MIT License
67 stars 33 forks source link

Cannot use with lazy loading and child module #54

Open devobenavidez opened 4 years ago

devobenavidez commented 4 years ago

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 commented 3 years ago

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