angular-nicescroll icon indicating copy to clipboard operation
angular-nicescroll copied to clipboard

$(...).niceScroll is not a function

Open intyro opened this issue 8 years ago • 5 comments

I'm using that package and have issue with that line var niceScroll = $(element).niceScroll(niceOption); the error is TypeError : $(...).niceScroll is not a function

intyro avatar May 23 '16 13:05 intyro

Have you imported jQuery? Angular only uses what they call "jQuery light" as default.

staffanselander avatar May 26 '16 18:05 staffanselander

I have the same issue and jQuery is loaded before this package. So is Angular. What's going on?

Exponent500 avatar Dec 04 '16 21:12 Exponent500

You might have forgotten to include the jquery.nicescroll plugin. If you used the bower download option you should have gotten both the angular-nicescroll and jquery.nicescroll plugins. make sure your app is making use of both.

rrubbico avatar Dec 15 '16 21:12 rrubbico

add this line to your index.html

after installing angular-nicescroll put this line into index.html-

<script src="../bower_components/angular-nicescroll/angular-nicescroll.js"></script>

svsh227 avatar Dec 30 '16 09:12 svsh227

@rrubbico Thanks a lot !

zsj621 avatar Apr 18 '17 09:04 zsj621