Topic: Mega Menu does not work.
kennylajara pro premium priority asked 6 years ago
Sebopede answered 5 years ago
Greetings!
Just a quick comment concerning the Angular Mega Menu library.
In the API documentation, it indicates that it is possible to import the required libraries import { NavbarModule, WavesModule, DropdownModule } from 'ng-uikit-pro-standard'
to use mega menu without having to import the full MDBBootstrapModulesPro.
However, when importing these libraries only and referencing mega menu through html, i get the following error in the console: NullInjectorError: No provider for ComponentLoaderFactory!
Is it possible to look into this, am i missing a library import?
Thanks for the help!
Arkadiusz Idzikowski staff commented 5 years ago
Please try to add forRoot()
to the Waves and Dropdown Module so it looks like this:
WavesModule.forRoot()
and DropdownModule.forRoot()
.
In case of any further questions related to the MDB Angular version, please create new thread and choose 'Angular' category.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Pro
- Premium support: Yes
- Technology: MDB jQuery
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No
Piotr Glejzer staff commented 6 years ago
Hi kennylajara, the main reason why this mega menu dosen't work is fact that you are using version 4.5.1. If you will upgrade to 4.5.9 version your files everything will work well! Best, Piotr