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.
Files changed (2) hide show
  1. package/README.md +34 -24
  2. package/package.json +21 -2
package/README.md CHANGED
@@ -1,24 +1,34 @@
1
- # AngularInfinityScroller
2
-
3
- This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 18.2.0.
4
-
5
- ## Code scaffolding
6
-
7
- Run `ng generate component component-name --project angular-infinity-scroller` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project angular-infinity-scroller`.
8
- > Note: Don't forget to add `--project angular-infinity-scroller` or else it will be added to the default project in your `angular.json` file.
9
-
10
- ## Build
11
-
12
- Run `ng build angular-infinity-scroller` to build the project. The build artifacts will be stored in the `dist/` directory.
13
-
14
- ## Publishing
15
-
16
- After building your library with `ng build angular-infinity-scroller`, go to the dist folder `cd dist/angular-infinity-scroller` and run `npm publish`.
17
-
18
- ## Running unit tests
19
-
20
- Run `ng test angular-infinity-scroller` to execute the unit tests via [Karma](https://karma-runner.github.io).
21
-
22
- ## Further help
23
-
24
- To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page.
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": "0.0.1",
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
+ }