angular-infinity-scrolling 2.0.0 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -27,16 +27,17 @@ followed by consuming the directive in example.component.
|
|
|
27
27
|
### Currently Directive has 2 properties
|
|
28
28
|
|
|
29
29
|
```
|
|
30
|
-
scrollDistance - input which accpet a number between 1 and
|
|
30
|
+
scrollDistance - input which accpet a number between 1 and 9.
|
|
31
31
|
Describing to emit the data if scrollable height is less than or equal to (number*10) percent.
|
|
32
32
|
[scrollDistance]='2' value will be emitted if scrollable height is less than or 20%.
|
|
33
|
+
NOTE: if invalid scrollDistance is given, then default value of 2 will be used for calculation;
|
|
33
34
|
|
|
34
35
|
onScrolled - output that accept a voidFunction to be invoked on emit
|
|
35
36
|
(onScrolled)="handleScroll()"
|
|
36
37
|
```
|
|
37
38
|
|
|
38
39
|
```ruby
|
|
39
|
-
<div class='scrollable-parent' angularInfinityScroller [scrollDistance]="
|
|
40
|
+
<div class='scrollable-parent' angularInfinityScroller [scrollDistance]="2" (onScrolled)="handleScroll()">
|
|
40
41
|
</div>
|
|
41
42
|
```
|
|
42
43
|
|