angular-smart-scroll
v0.0.5
Published
Smart infinite scroll directive for Angular.js that is customizable to support nested, horizontal, vertical, and/or bidirectional scrolls
Downloads
5
Maintainers
Readme
angular-smart-scroll
Smart infinite scroll directive for Angular.js that is customizable to support nested, horizontal, vertical, and/or bidirectional scrolls
Smart Infinite Scroll for AngularJS
Getting Started
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']);
Dependencies
Required
- AngularJS (https://github.com/angular/angular.js)
- jQuery (https://github.com/jquery/jquery)
Optional
- For
_.throttle
support- Underscore (https://github.com/jashkenas/underscore)
- or Lodash (https://github.com/lodash/lodash)
Development
To set up the development environment, run these commands once:
Installation
First, install global dependencies (grunt and bower) if you have not already.
$ npm install -g grunt-cli bower
Then install local dependencies
$ npm install
Running tests
After installing global and local dependencies, run the tests:
$ grunt test
To run tests automatically on every file change:
$ grunt dev
Building Production Files
$ grunt build
Contributing
Feel free to create a pull request with unit tests with 100% code coverage!
License
(The MIT License)
Copyright (c) 2014 Joon Ho Cho