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

https://github.com/g1eb/angular-scroll-events

Angular directives for scroll events
https://github.com/g1eb/angular-scroll-events

angular directive events scroll support

Last synced: 9 months ago
JSON representation

Angular directives for scroll events

Awesome Lists containing this project

README

          

# Angular directives for scroll events

Utility library to add support for `scroll-up` and `scroll-down` events

## Installation

1) Install 'g1b.angular-scroll-events' with npm or yarn

```
npm install angular-scroll-events
```

or:

```
yarn add angular-scroll-events
```

2) Add 'g1b.scroll-events' module to your app config

```javascript
angular.module('myApp', [
'g1b.scroll-events',
...
])
```

3) Use 'scroll-up' and/or 'scroll-down' directive in a view

```html

↑ Scroll Up

```

or:

```html

↓ Scroll Down

```

## Example

See [index.html](https://github.com/g1eb/angular-scroll-events/blob/master/index.html) for an example implementation or click here for an interactive demo