angular-mgl-timeline icon indicating copy to clipboard operation
angular-mgl-timeline copied to clipboard

Cannot use with lazy loading and child module

Open devobenavidez opened this issue 4 years ago • 1 comments

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.

devobenavidez avatar Jul 05 '20 18:07 devobenavidez

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

rkchaudhary4 avatar Jan 14 '21 08:01 rkchaudhary4