angular-infinity-scrolling 0.0.1 → 1.1.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 +34 -24
- package/package.json +21 -2
package/README.md
CHANGED
|
@@ -1,24 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
1
|
+
## Thank you for using angular -infinity-scroller for infinite scrolling.
|
|
2
|
+
## Use Case
|
|
3
|
+
### Note: Current version ov package is compatible with angular version above 17
|
|
4
|
+
### go to the directory, open terminal and and install package using `npm i angular-infinity-scroller`
|
|
5
|
+
### Go to the ts file of component e.g. example.component.ts and insert AngularInfinityScrollerDirective
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
```ruby
|
|
9
|
+
import {AngularInfiniteScrollerDirective} from "angular-infinity-scroller";
|
|
10
|
+
|
|
11
|
+
@Component({
|
|
12
|
+
selector: 'app-example',
|
|
13
|
+
imports: [
|
|
14
|
+
AngularInfiniteScrollerDirective,
|
|
15
|
+
],
|
|
16
|
+
templateUrl: './exaple.component.html',
|
|
17
|
+
styleUrl: './exaple.component.scss',
|
|
18
|
+
})
|
|
19
|
+
export class ExampleComponent
|
|
20
|
+
```
|
|
21
|
+
````
|
|
22
|
+
followed by consuming the directive in example.component.
|
|
23
|
+
````
|
|
24
|
+
### Currently Directive has 2 properties
|
|
25
|
+
````
|
|
26
|
+
scrollDistance - input which accpet a number between 1 and 10 describing to emit the data if scrollable height is less than or equal to (number*10) percent
|
|
27
|
+
[scrollDistance]='2' value will be emitted if scrollable height is less than or 20%
|
|
28
|
+
onScrolled - output that accept a voidFunction to be invoked on emit
|
|
29
|
+
(onScrolled)="handleScroll()"
|
|
30
|
+
````
|
|
31
|
+
```ruby
|
|
32
|
+
<div class='scrollable-parent' appAngularInfinityScroller [scrollDistance]="4" (onScrolled)="handleScroll()">
|
|
33
|
+
</div>
|
|
34
|
+
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "angular-infinity-scrolling",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.1.0",
|
|
4
|
+
"repository": {
|
|
5
|
+
"type": "git",
|
|
6
|
+
"url": "https://github.com/Jayant061/angular-infinity-scroller"
|
|
7
|
+
},
|
|
8
|
+
"bugs": {
|
|
9
|
+
"url": "https://github.com/Jayant061/angular-infinity-scroller/issues"
|
|
10
|
+
},
|
|
11
|
+
"keywords": [
|
|
12
|
+
"Angular-infinity-scrolling",
|
|
13
|
+
"Angular-infinity-scroller",
|
|
14
|
+
"infinity-scroller",
|
|
15
|
+
"Angular-infinite-scroller",
|
|
16
|
+
"Angular-infinite-scroll",
|
|
17
|
+
"infinte-scroll",
|
|
18
|
+
"infinite",
|
|
19
|
+
"Angular"
|
|
20
|
+
],
|
|
21
|
+
"author": "Jayant Thakur",
|
|
22
|
+
"license": "ISC",
|
|
4
23
|
"peerDependencies": {
|
|
5
24
|
"@angular/common": "^18.2.0",
|
|
6
25
|
"@angular/core": "^18.2.0"
|
|
@@ -22,4 +41,4 @@
|
|
|
22
41
|
"default": "./fesm2022/angular-infinity-scroller.mjs"
|
|
23
42
|
}
|
|
24
43
|
}
|
|
25
|
-
}
|
|
44
|
+
}
|