Topic: old question of lazy loading in Angular
rtchrisdev pro asked 6 years ago
Expected behavior The lazing loaded route works without error, and the MDBbootstrapModulePro loads without fail. I have tried many example of Lazy Loading to no avail. There was a link from MDB in github of a working example, but it is no active now.
Actual behavior
Either I get the error below, or MDBBootstrap does not load , resulting in the html not having any MDB styling.
Resources (screenshots, code snippets etc.)
ERROR Error: Uncaught (in promise): Error: BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead. Error: BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.
Arkadiusz Idzikowski staff answered 6 years ago
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Resolved
- User: Pro
- Premium support: No
- Technology: MDB Angular
- MDB Version: 7.5.0
- Device: MacBook Air
- Browser: Chrome
- OS: Mac OS
- Provided sample code: No
- Provided link: No