angular-mgl-timeline
angular-mgl-timeline copied to clipboard
Cannot use with lazy loading and child module
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.
I did the lazy loading in angular version 11 and it worked. Try upgrading your angular version.