Using require instead of import #356
Answered
by
idiotWu
mario-lemes
asked this question in
Q&A
-
Hey @idiotWu Great job in this component! I'm wondering if it's possible use 'require' in order to import the component instead of 'import'. If is that possible, How is suppose to be? Thank you. |
Beta Was this translation helpful? Give feedback.
Answered by
idiotWu
May 20, 2016
Replies: 1 comment
-
Sure that's possible! Since this module is defined as UMD, you can simply use |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
idiotWu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sure that's possible! Since this module is defined as UMD, you can simply use
var Scrollbar = require('smooth-scrollbar')
in your code.