What is ngInfiniteScroll

Posted By : Darshan Dang | 26-Jun-2015

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

 

About Author

Author Image
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 .

Request for Proposal

Name is required

Comment is required

Sending message..