Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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.