Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: Lazy Loading Modules

itdev pro asked 6 years ago


Do you have documentation on how to use MDBootstrap in an Angular application that supports multiple lazy loading Modules?


Arkadiusz Idzikowski staff answered 6 years ago


Dear itdev,

Unfortunately, currently we don't have any tutorial on creating lazy modules. As the @ahess already mentioned, you need to import modules of components you need to use to the lazy loaded module. 

Please let us know if you encounter any further problems.

Regards,

Arek


edmond tm free commented 4 years ago

Hi Idzikowski,

Is there any documents for lazy loading modules now ?

Regards,

Edmond


Arkadiusz Idzikowski staff commented 4 years ago

Please take a look at the official Angular guide: https://angular.io/guide/lazy-loading-ngmodules

When you have an initial setup, just add imports of specific MDB modules to your feature modules.


ahess free answered 6 years ago


same error here ...it seems you have to import the the mdb in every lazy comp


itdev pro answered 6 years ago


Here is an error I am getting in one of the modules but works fine in all other modules.

ERROR in : Can't bind to 'options' since it isn't a known property of 'mdb-select'.
1. If 'mdb-select' is an Angular component and it has 'options' input, then verify that it is part of this module.
2. If 'mdb-select' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: 7.0.0
  • Device: All
  • Browser: All
  • OS: All
  • Provided sample code: No
  • Provided link: No