angular-io-slimscroll | Customizable slimScroll directive | Authentication library
kandi X-RAY | angular-io-slimscroll Summary
kandi X-RAY | angular-io-slimscroll Summary
Customizable slimScroll directive for Angular 2.
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 angular-io-slimscroll
angular-io-slimscroll Key Features
angular-io-slimscroll Examples and Code Snippets
Community Discussions
Trending Discussions on angular-io-slimscroll
QUESTION
I am using angular-io-slimscroll for scrolling. I have two modules in which I require this plugin.
If I add this plugin in both of the modules then there is this error, which I understand that I cannot declare component in 2 modules
So I declare plugin in app.module, logically this is fine and both of the modules should be able to do this but I am facing this error
Note: Now I am converting everything into modules for better structure, before converting I have all things as components and the plugin is working at that stage but not in multiple modules.
Kindly help me to solve this or tell me any good alternative, Thanks
...ANSWER
Answered 2017-Sep-25 at 23:46Slimscroll is a directive and you can't import it into multiple modules.
Create a shared module and import Slimscroll into declarations of the module.
Also you must export it and import the shared module into the modules you want to use it.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install angular-io-slimscroll
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