angular-infinity-scrolling 1.5.2 → 1.5.3

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 +17 -8
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,11 +1,11 @@
1
1
  ## Thank you for using angular -infinity-scroller for infinite scrolling.
2
- >[!TIP]
3
- >Note: Current version of package is compatible with angular version above 17
2
+
3
+ > [!TIP]
4
+ > Note: Current version of package is compatible with angular version above 17
4
5
 
5
6
  go to the directory, open terminal and and install package using `npm i angular-infinity-scroller`
6
7
  Go to the ts file of component e.g. example.component.ts and add AngularInfinityScrollerDirective inside imports.
7
8
 
8
-
9
9
  ```ruby
10
10
  import {AngularInfinityScrollerDirective} from "angular-infinity-scroller";
11
11
 
@@ -19,19 +19,28 @@ import {AngularInfinityScrollerDirective} from "angular-infinity-scroller";
19
19
  })
20
20
  export class ExampleComponent{}
21
21
  ```
22
- ````
22
+
23
+ ```
23
24
  followed by consuming the directive in example.component.
24
- ````
25
+ ```
26
+
25
27
  ### Currently Directive has 2 properties
26
- ````
28
+
29
+ ```
27
30
  scrollDistance - input which accpet a number between 1 and 10.
28
31
  Describing to emit the data if scrollable height is less than or equal to (number*10) percent.
29
32
  [scrollDistance]='2' value will be emitted if scrollable height is less than or 20%.
30
33
 
31
34
  onScrolled - output that accept a voidFunction to be invoked on emit
32
35
  (onScrolled)="handleScroll()"
33
- ````
36
+ ```
37
+
34
38
  ```ruby
35
39
  <div class='scrollable-parent' angularInfinityScroller [scrollDistance]="4" (onScrolled)="handleScroll()">
36
40
  </div>
37
- ```
41
+ ```
42
+
43
+ ```
44
+ Any suggestions or contributions are most welcome. If you are facing any issue with the packge please raise the issue in the github, I'll happt to resolve the bugs.
45
+ Happy coding!!
46
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "angular-infinity-scrolling",
3
- "version": "1.5.2",
3
+ "version": "1.5.3",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/Jayant061/angular-infinity-scroller"