Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sparkalow/angular-infinite-scroll
Angular directive for infinite scrolling.
https://github.com/sparkalow/angular-infinite-scroll
Last synced: 3 months ago
JSON representation
Angular directive for infinite scrolling.
- Host: GitHub
- URL: https://github.com/sparkalow/angular-infinite-scroll
- Owner: sparkalow
- License: mit
- Created: 2013-02-23T20:49:03.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2016-04-18T12:29:48.000Z (over 8 years ago)
- Last Synced: 2024-06-30T19:19:54.078Z (5 months ago)
- Language: JavaScript
- Homepage:
- Size: 227 KB
- Stars: 94
- Watchers: 8
- Forks: 39
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Angular Infinite Scroll
***
## Usage
### Requirements
* **AngularJS v1.0.0+** is currently required.
* does not require jquery## Quick start
+ Include the required libraries (cdn/local)>
``` html```
+ Include the infinite-scroll js>
``` html```
+ Inject the `infinite-scroll` directive into your app module
>
```javascript
angular.module('myApp', ['infiniteScroll']);
```>
``` html
```Required Attributes
--------
**infinite-scroll**The *infinite-scroll* attribute defines the method to call to add items when the scrolling threshold is reached.
Optional Attributes
-------
**threshold**The *threshold* attribute defines the distance in pixels from the bottom of the content to call the infinite-scroll method when the content is scrolled.
**can-load**
The *can-load* attribute is considered a boolean and controls whether calls to the method defined in *infinite-scroll* should be called when the content is scrolled.