angular-infinity-scrolling 1.2.1 → 1.3.0
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 +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
>Note: Current version of package is compatible with angular version above 17
|
|
4
4
|
|
|
5
5
|
go to the directory, open terminal and and install package using `npm i angular-infinity-scroller`
|
|
6
|
-
Go to the ts file of component e.g. example.component.ts and
|
|
6
|
+
Go to the ts file of component e.g. example.component.ts and add AngularInfinityScrollerDirective inside imports.
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
```ruby
|
|
10
|
-
import {
|
|
10
|
+
import {AngularInfinityScrollerDirective} from "angular-infinity-scroller";
|
|
11
11
|
|
|
12
12
|
@Component({
|
|
13
13
|
selector: 'app-example',
|
|
14
14
|
imports: [
|
|
15
|
-
|
|
15
|
+
AngularInfinityScrollerDirective,
|
|
16
16
|
],
|
|
17
17
|
templateUrl: './exaple.component.html',
|
|
18
18
|
styleUrl: './exaple.component.scss',
|
|
@@ -32,6 +32,6 @@ onScrolled - output that accept a voidFunction to be invoked on emit
|
|
|
32
32
|
(onScrolled)="handleScroll()"
|
|
33
33
|
````
|
|
34
34
|
```ruby
|
|
35
|
-
<div class='scrollable-parent'
|
|
35
|
+
<div class='scrollable-parent' angularInfinityScroller [scrollDistance]="4" (onScrolled)="handleScroll()">
|
|
36
36
|
</div>
|
|
37
37
|
```
|