Topic: MDB angular - use mdb components in lazy loaded modules
georgegtx pro asked 7 years ago
Roimer Peraza free answered 6 years ago
hellomdb pro commented 6 years ago
Hello Roimer, 1/ only import ToastModule.forRoot() at app.module 2/ Lazy module: imports: [ MDBBootstrapModulesPro.forRoot() ] or shared module imports: [ MDBBootstrapModulesPro.forRoot() ], exports: [ MDBBootstrapModulesPro ], Hope this helpsArkadiusz Idzikowski staff commented 6 years ago
Dear Roimer Peraza, Please try the solution posted by hellomdb and let me know if that helped to resolve your problems. Regards, ArekDawid Adach pro answered 7 years ago
nthieu13 pro answered 7 years ago
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- ForumUser: Pro
- Premium support: No
- Technology: MDB Angular
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No
georgegtx pro commented 7 years ago
This issue references as the problem the fact that modules don't inherit components from parent modules, even if the parent is the app.module, nut only services. According to answers in that issue we have to re import all necessary components in child modules. see https://github.com/angular/angular/issues/15024 If i re-import MDBBootstrapModules.forRoot() in the child module i get: Error: ToastModule is already loaded. It should only be imported in your application's main module. How will we go about that?