ng-material-multilevel-menu | :page_facing_up: Material Multi-Level Menu for Angular Projects
kandi X-RAY | ng-material-multilevel-menu Summary
kandi X-RAY | ng-material-multilevel-menu Summary
:page_facing_up: Material Multi-Level Menu for Angular Projects
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ng-material-multilevel-menu
ng-material-multilevel-menu Key Features
ng-material-multilevel-menu Examples and Code Snippets
Community Discussions
Trending Discussions on ng-material-multilevel-menu
QUESTION
I followed this guide to set up swiper slider in my Angular 8 application.
I get the below error when importing NgxUsefulSwiperModule into app.module.ts
ERROR in ./node_modules/ngx-useful-swiper/fesm2015/ngx-useful-swiper.js Module not found: Error: Can't resolve 'swiper/bundle' in 'C:\Users\Dan\NewAngular\node_modules\ngx-useful-swiper\fesm2015'
I tried deleting the node_modules folder and reinstalling everything but it fails every time.
Can someone please tell me what I'm doing wrong?
This is my package.json file
...ANSWER
Answered 2021-Oct-14 at 06:37Looks like ngx-useful-swiper
is not compatible with the latest version of swiper
.
The error clearly states that ngx-useful-swiper
is trying to access a file that's not available in the swiper
package you just installed.
Try installing a different version of swiper
slider.
Follow these steps:
1) Uninstall the current swiper
QUESTION
I have an angular8 project which I upgraded recently from angular7 on node: "10.15.2","npm": "6.14.5"
I'm using the following plugin
https://www.npmjs.com/package/ng-material-multilevel-menu
@4.12.2
With ng serve
the application works fine and the multilevel as expected.
However I've installed angular ssr as described in universal and when when I run with the command:
ng serve --prod --optimization=false
or
npm run build:ssr && npm run serve:ssr
I receive the following error:
main.96f1c69496e6c439b888.js:29505 ERROR NullInjectorError: StaticInjectorError(AppModule)[ListItemComponent -> MultilevelMenuService]: StaticInjectorError(Platform: core)[ListItemComponent -> MultilevelMenuService]: NullInjectorError: No provider for MultilevelMenuService!
I have made the following project in order to show the error I get which you can find in the link angular8-ng-multilevel
Any ideas on how could I solve it?
Thanks
...ANSWER
Answered 2020-Jun-20 at 21:34here is your fix
QUESTION
I am using ng-material-multilevel-menu
plugin to create multilevel dropdown. I am following this article, but getting below runtime error
Can't bind to 'configuration' since it isn't a known property of 'ng-material-multilevel-menu'. 1. If 'configuration' is an Angular directive, then add 'CommonModule' to the '@NgModule.imports' of this component. 2. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.
Can't bind to 'items' since it isn't a known property of 'ng-material-multilevel-menu'. 1. If 'items' is an Angular directive, then add 'CommonModule' to the '@NgModule.imports' of this component. 2. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.
'ng-material-multilevel-menu' is not a known element: 1. If 'ng-material-multilevel-menu' is an Angular component, then verify that it is part of this module. 2. If 'ng-material-multilevel-menu' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
This is my code in .html
file
ANSWER
Answered 2020-Feb-25 at 01:23First: Do not use var, just use it like this appitems=[...] Second: You did not declare the config variable in your controller. Third: You need to add the NgMaterialMultilevelMenuModule in the AppModule class not in the component you created.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ng-material-multilevel-menu
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page