angular2-image-gallery
Advanced tools
Comparing version
@@ -0,1 +1,2 @@ | ||
import 'hammerjs'; | ||
import * as i0 from "@angular/core"; | ||
@@ -2,0 +3,0 @@ import * as i1 from "./gallery/gallery.component"; |
{ | ||
"name": "angular2-image-gallery", | ||
"version": "14.0.1", | ||
"version": "14.0.2", | ||
"description": "Responsive Angular 14 image gallery", | ||
@@ -24,7 +24,7 @@ "repository": { | ||
"peerDependencies": { | ||
"@angular/common": "^14.2.1", | ||
"@angular/core": "^14.2.1", | ||
"@angular/common": "^14.x.x", | ||
"@angular/core": "^14.x.x", | ||
"gm": "^1.23.1", | ||
"hammerjs": "^2.0.8", | ||
"onecolor": "^3.0.5" | ||
"hammerjs": "^2.0.x", | ||
"onecolor": "^3.0.x" | ||
}, | ||
@@ -31,0 +31,0 @@ "keywords": [ |
@@ -28,29 +28,20 @@ # Angular 2 Image Gallery | ||
#### 1. Install angular2-image-gallery | ||
#### 1. Install dependencies | ||
```bash | ||
npm install angular2-image-gallery --save | ||
npm install hammerjs --save | ||
npm install angular2-image-gallery hammerjs --save | ||
``` | ||
#### 2. Import angular2-image-gallery in your Angular module | ||
#### 2. Import modules | ||
```javascript | ||
imports: [ | ||
Angular2ImageGalleryModule | ||
..., | ||
Angular2ImageGalleryModule, | ||
HammerModule | ||
], | ||
``` | ||
#### 3. For swipe/pan gesture support add hammer.js to your project | ||
#### 3. Run convert script | ||
Import **HammerModule** in your module.ts. | ||
Add the following line to your **main.ts** file: | ||
```javascript | ||
import 'hammerjs' | ||
``` | ||
#### 4. Run convert script | ||
```bash | ||
@@ -72,3 +63,3 @@ node node_modules/angular2-image-gallery/convert.js <path/to/your/images> | ||
#### 5. Embed gallery in your template | ||
#### 4. Embed gallery in your template | ||
@@ -75,0 +66,0 @@ ```javascript |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
2529
0.16%330054
-0.02%94
-8.74%