You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A simple, lightweight infinite scrolling directive for [Angular][angular] which emits an event when an element has been scrolled to the bottom.
6
8
7
9
This is a simple library for [Angular][angular], implemented in the [Angular Package Format v5.0](https://docs.google.com/document/d/1CZC2rcpxffTDfRDs6p1cfbmKNLA6x5O-NtkJglDaBVs/edit#heading=h.k0mh3o8u5hx).
8
10
9
-
10
11
## Install
11
12
12
13
`npm i @thisissoon/angular-infinite-scroll --save`
A working example can be found inside [/src](https://github.com/thisissoon/angular-infinite-scroll/tree/master/src) folder
@@ -48,15 +47,13 @@ export class AppComponent {
48
47
// Do something here
49
48
}
50
49
}
51
-
52
50
```
53
51
54
52
## Options
55
53
56
54
*`offset` (number): distance in px from bottom of element to trigger `scrollEnd` event (default: 0)
57
55
*`disabled` (boolean): If true directive will not trigger `scrollEnd` event
58
56
59
-
60
57
## Development server
61
58
62
59
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
@@ -81,10 +78,11 @@ Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protrac
81
78
82
79
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).
0 commit comments