What is ngInfiniteScroll ?
ngInfiniteScroll is a directive that you can use to implement infinite scrolling in your AngularJS applications. Simply declare which function to call when the user gets close to the bottom of the content with the directive and the module will take care of the rest. Of course, you can specify several options to ensure that the behavior is just what you're looking for.
How do I use ngInfiniteScroll?
Using ngInfiniteScroll is easy—just follow these simple steps:
- Include the ngInfiniteScroll JavaScript source script tag on your page, after the script tags for jQuery and AngularJS (ngInfiniteScroll requires the use of jQuery).
<script type='text/javascript' src='path/to/jquery.min.js'></script>
<script type='text/javascript' src='path/to/angular.min.js'></script>
<script type='text/javascript' src='path/to/ng-infinite-scroll.min.js'></script>
- your application module specifies infinite-scroll as a dependency.
angular.module('myApplication', ['infinite-scroll']);
- Use the directive by specifying an
infinite-scroll
attribute on an element
If you want more information follow this url
https://sroze.github.io/ngInfiniteScroll/
THANKS
More From Oodles
Ready to innovate? Let's get in touch
Cookies are important to the proper functioning of a site. To improve your experience, we use cookies to remember log-in details and provide secure log-in, collect statistics to optimize site functionality, and deliver content tailored to your interests. Click Agree and Proceed to accept cookies and go directly to the site or click on View Cookie Settings to see detailed descriptions of the types of cookies and choose whether to accept certain cookies while on the site.
About Author
Darshan Dang
Darshan is a creative UI designer with experience and capabilities to build compelling UI designs for Web and Mobile Applications. Darshan likes Punjabi songs and Travelling in Free Time .