Closed otatar closed 1 year ago
Add MultilevelMenuService to NgModule.providers array.
Hi @otatar,
To resolve this issue you need to import MultilevelMenuService as well. and add it on your providers.
Hope @otatar , you were able to fix that issue, thanks
Do I need to provide MutliLevelMenuService? I don't use it explicitly anywhere. I use ng-material-multilevel-menu inside lazy loaded module, and this is the error:
core.js:5967 ERROR Error: Uncaught (in promise): NullInjectorError: R3InjectorError(DashboardModule)[MultilevelMenuService -> MultilevelMenuService -> MultilevelMenuService -> MultilevelMenuService]: NullInjectorError: No provider for MultilevelMenuService! NullInjectorError: R3InjectorError(DashboardModule)[MultilevelMenuService -> MultilevelMenuService -> MultilevelMenuService -> MultilevelMenuService]: NullInjectorError: No provider for MultilevelMenuService!