tushar-borole / angular-nicescroll

:full_moon_with_face: nicescroll directive for angular js, adding the custom scroll with infinite scrolling becomes very easy in angular js
http://tushariscoolster.github.io/angular-nicescroll
64 stars 26 forks source link

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

Open intyro opened 8 years ago

intyro commented 8 years ago

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

staffanselander commented 8 years ago

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

Exponent500 commented 7 years ago

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

rrubbico commented 7 years ago

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.

svsh227 commented 7 years ago

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>
zsj621 commented 7 years ago

@rrubbico Thanks a lot !