@@ -44,16 +44,9 @@ Or play with it live on [stackblitz.com/edit/ngx-scrolltop](https://stackblitz.c
44
44
> [ See our Angular compatibility instructions…] ( #compatibility )
45
45
46
46
``` bash
47
- ng add ngx-scrolltop # for Angular 12+ only! See our compatibility table
47
+ ng add ngx-scrolltop # for latest Angular only! See our compatibility table
48
48
```
49
49
50
- <!--
51
- ```bash
52
- npm install ngx-translate-cut # For Angular 13+. See compatibility table.
53
- ```
54
-
55
- Choose the version corresponding to your Angular version: -->
56
-
57
50
** Everything's done!** _ (module imported and all settings automatically set in your project.)_
58
51
59
52
_ Now just see some [ options and examples] ( #options ) ._
@@ -63,7 +56,7 @@ _Now just see some [options and examples](#options)._
63
56
Via ** yarn** or ** npm**
64
57
65
58
``` bash
66
- npm install ngx-scrolltop --save # for Angular 12+ only! See our compatibility table
59
+ npm install ngx-scrolltop --save # for lastest Angular only! See our compatibility table
67
60
68
61
# npm install ngx-scrolltop@2 --save # for Angular 5 – 11
69
62
```
@@ -95,7 +88,7 @@ If you still need to use it with an older version of Angular, then use version 2
95
88
| Angular version | ngx-scrolltop | Install |
96
89
| --------------- | ------------- | ----------------------------- |
97
90
| ng15 | v5.x.x | ` ng add ngx-scrolltop@latest ` |
98
- | ng14 | v5 .x.x | ` ng add ngx-scrolltop@latest ` |
91
+ | ng14 | v4 .x.x | ` ng add ngx-scrolltop@4 ` |
99
92
| ng13 | v4.x.x | ` ng add ngx-scrolltop@4 ` |
100
93
| ng12 | v4.x.x | ` ng add ngx-scrolltop@4 ` |
101
94
| ng5 – ng11 | v2.x.x | ` ng add ngx-scrolltop@2 ` |
@@ -242,13 +235,35 @@ Easy! Use compatibility version of this library `npm install ngx-scrolltop@2 --s
242
235
243
236
[ See our Angular compatibility instructions…] ( #compatibility )
244
237
238
+ #### Error
239
+
240
+ If you are using Angular 14 with latest ngx-scrolltop library, you will see this error on build or start:
241
+
242
+ ``` bash
243
+ Error: node_modules/ngx-scrolltop/lib/ngx-scrolltop.component.d.ts:21:18 - error TS2707: Generic type ' ɵɵComponentDeclaration' requires between 7 and 8 type arguments.
244
+
245
+ 21 static ɵcmp: i0.ɵɵComponentDeclaration< NgxScrollTopComponent, " ngx-scrolltop" , never, { " backgroundColor" : " backgroundColor" ; " symbolColor" : " symbolColor" ; " size" : " size" ; " symbol" : " symbol" ; " position" : " position" ; " theme" : " theme" ; " mode" : " mode" ; }, {}, never, [" *" ], false, never> ;
246
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
247
+
248
+
249
+ Error: node_modules/ngx-scrolltop/lib/ngx-scrolltop.directive.d.ts:17:18 - error TS2707: Generic type ' ɵɵDirectiveDeclaration' requires between 6 and 8 type arguments.
250
+
251
+ 17 static ɵdir: i0.ɵɵDirectiveDeclaration< NgxScrollTopDirective, " [ngxScrollTop]" , never, { " mode" : " ngxScrollTopMode" ; }, {}, never, never, false, never> ;
252
+ ```
253
+
254
+ #### Solution
255
+
256
+ Easy! Use compatibility version of this library ` npm install ngx-scrolltop@4 --save `
257
+
258
+ [ See our Angular compatibility instructions…] ( #compatibility )
259
+
245
260
## Donation
246
261
247
262
If this project have helped you save time please consider [ making a donation] ( https://github.com/sponsors/bartholomej ) for some 🍺 or 🍵 ;)
248
263
249
264
## License
250
265
251
- Copyright © ; 2022 [ Lukas Bartak] ( http://bartweb.cz )
266
+ Copyright © ; 2023 [ Lukas Bartak] ( http://bartweb.cz )
252
267
253
268
Proudly powered by nature 🗻, wind 💨, tea 🍵 and beer 🍺 ;)
254
269
0 commit comments