Smart infinite scroll directive for Angular.js that is customizable to support nested, horizontal, vertical, and/or bidirectional scrolls
To get started, add angular-smart-scroll.js
to your webpage:
<script type="text/javascript" src="path/to/angular-smart-scroll.js"></script>
And add the module jun.smartScroll
to your app's dependencies:
angular.module('MyApp', ['jun.smartScroll']);
- AngularJS (https://github.com/angular/angular.js)
- jQuery (https://github.com/jquery/jquery)
- For
_.throttle
support- Underscore (https://github.com/jashkenas/underscore)
- or Lodash (https://github.com/lodash/lodash)
To set up the development environment, run these commands once:
First, install global dependencies (grunt and bower) if you have not already.
$ npm install -g grunt-cli bower
Then install local dependencies
$ npm install
After installing global and local dependencies, run the tests:
$ grunt test
To run tests automatically on every file change:
$ grunt dev
$ grunt build
Feel free to create a pull request with unit tests with 100% code coverage!
(The MIT License)
Copyright (c) 2014 Joon Ho Cho