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: Possible not to import MDBBootstrapModulesPro.forRoot() in appModule?

junior5417 pro asked 5 years ago


Can I only import module/component that I used for my First Loaded Page? Im trying to reduce the page load/app size by not importing the MDBBootstrapModulesPro.forRoot()


Arkadiusz Idzikowski staff answered 5 years ago


MDBBootstrapModulesPro module contains all MDB Angular modules. If you want to use only specific components, you can import only their modules.

You can find the list of all available modules here:

https://mdbootstrap.com/docs/angular/getting-started/modules/


junior5417 pro answered 5 years ago


Is that mean I don't have to include MDBBootstrapModulesPro.forRoot() anywhere in my project even in my appModule? or have to import at least once?


Damian Gemza staff answered 5 years ago


Dear @junior5417

Yes, this is possible. Just import this module, which you want to use - for example, ButtonsModule.

Best Regards,

Damian



Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Answered

Specification of the issue

  • ForumUser: Pro
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: 7.4.4
  • Device: Mac
  • Browser: Chrome
  • OS: MacOS
  • Provided sample code: No
  • Provided link: No