Topic: Correct method of import modules that they actually use
With the new changes made in Angular 8 modularization (adding only the modules that the project will actually use). My question is whether it is still necessary to add in the app.module.ts import {MDBBootstrapModulesPro} from 'ng-uikit-pro-standard'; imports: [ ... MDBBootstrapModulesPro.forRoot (), ... ],
According to what I understand this would bring all the components of MDB causing my site to slow down. What is the correct method for importing only the components that I'll use and not importing elements that I won't use?
Damian Gemza staff answered 5 years ago
Dear @Himmer
You'll able to import only those modules which you're using. So, for example, if your app is using only Cards and Buttons components, you may import only ButtonsModule
and CardsModule
in your app.module.ts
file.
Here's the full list of our modules. Please take a look at it.
Best Regards,
Damian
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Free
- Premium support: No
- Technology: MDB Angular
- MDB Version: 8.0.0
- Device: Mac
- Browser: Chrome
- OS: OSX
- Provided sample code: No
- Provided link: No