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

https://github.com/wangdahoo/ngscroll

Scroller Component for Angular.js 1.x https://wangdahoo.github.io/ngScroll
https://github.com/wangdahoo/ngscroll

Last synced: about 1 month ago
JSON representation

Scroller Component for Angular.js 1.x https://wangdahoo.github.io/ngScroll

Awesome Lists containing this project

README

          

# Angular Scroll Component ![version](https://img.shields.io/badge/release-%20v1.0.2%20-green.svg)

> smooth scrolling, pull to refresh and infinite loading, for Angular 1.x

## Demo
> see sample code in folder /demo. And checkout demo [here](https://wangdahoo.github.io/ngScroll/)

## Quick Start
```html






```

```js

// code in controller ...

$scope.$watch('items', function (newVal, oldVal) {
$scope.$broadcast('$finishPullToRefresh');
var scroller = $scroller.get('myScroller');
if (scroller) scroller.resize();
});

$scope.onRefresh = function () {
$timeout(function () {
// do change items
}, 2000);
};

$scope.onInfinite = function () {
$timeout(function () {
// do change items
}, 2000);
};

// code in controller ...

```