File tree Expand file tree Collapse file tree 2 files changed +5
-19
lines changed Expand file tree Collapse file tree 2 files changed +5
-19
lines changed Original file line number Diff line number Diff line change 5
5
[ ![ npm version] ( https://badge.fury.io/js/%40ngu%2Fcarousel.svg )] ( https://badge.fury.io/js/%40ngu%2Fcarousel )
6
6
7
7
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
8
+
8
9
[ ![ All Contributors] ( https://img.shields.io/badge/all_contributors-14-orange.svg?style=flat-square )] ( #contributors- )
10
+
9
11
<!-- ALL-CONTRIBUTORS-BADGE:END -->
10
12
11
13
Angular Universal carousel
@@ -20,6 +22,8 @@ Demo available [Here](https://ngu-carousel.netlify.app)
20
22
21
23
## Installation
22
24
25
+ ` ngu-carousel ` supports touch actions and requires ` hammerjs ` to be installed before the ` ngu-carousel ` is installed.
26
+
23
27
| Angular Version | ngu-carousel Version |
24
28
| --------------- | ----------------------------------- |
25
29
| Angular >= 15 | ` npm i --save @ngu/carousel@latest ` |
@@ -30,22 +34,6 @@ Demo available [Here](https://ngu-carousel.netlify.app)
30
34
| Angular = 9
| ` npm i --save @ngu/[email protected] ` |
31
35
| Angular < 9
| ` npm i --save @ngu/[email protected] ` |
32
36
33
- ### Optional Dependencies
34
-
35
- #### hammer.js
36
-
37
- Now ngu-carousel supports touch with the help of hammerjs.
38
- You can install and import it in the ` main.ts ` file like this
39
-
40
- ```
41
- npm install hammerjs --save
42
- ```
43
-
44
- ``` typescript
45
- // main.ts
46
- import ' hammerjs' ;
47
- ```
48
-
49
37
## Usage
50
38
51
39
1 . Include CarouselModule in your app module:
Original file line number Diff line number Diff line change 5
5
"@angular/common" : " ^15.0.0" ,
6
6
"@angular/core" : " ^15.0.0" ,
7
7
"@angular/animations" : " ^15.0.0" ,
8
+ "hammerjs" : " ^2.0.0" ,
8
9
"rxjs" : " ^7.0.0" ,
9
10
"zone.js" : " ^0.11.4"
10
11
},
11
- "optionalDependencies" : {
12
- "hammerjs" : " ^2.0.0"
13
- },
14
12
"dependencies" : {
15
13
"tslib" : " 2.4.1"
16
14
},
You can’t perform that action at this time.
0 commit comments