Skip to content

Commit 0d26d56

Browse files
final preparation for angular 6 publication
1 parent c4ceaa4 commit 0d26d56

File tree

4 files changed

+430
-1139
lines changed

4 files changed

+430
-1139
lines changed

README.md

Lines changed: 14 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,17 @@
44
[![npm version](https://badge.fury.io/js/angular2-image-gallery.svg)](https://badge.fury.io/js/angular2-image-gallery)
55
[![npm downloads](https://img.shields.io/npm/dt/angular2-image-gallery.svg)](https://www.npmjs.com/package/angular2-image-gallery)
66

7+
----> **compatible with Angular 6+** <----
8+
79
Responsive image gallery designed for high resolution images.
810

911
The project consists of a gallery, a viewer and a script for image preparation.
1012

11-
Before using the gallery, you have to process all of your images that will be part of your gallery with the node.js script. The processed images will be stored to your applications assets or, if you'd like to, at a remote location. During runtime everything runs client-side and there is no separate server-side communication involved. The viewer takes care that an optimal image quality is served based on the device resolution.
13+
Before using the gallery, you have to process all of your images that will be part of your gallery with the **convert** script. The processed images will be stored to your applications assets or, if you wish, at a remote location. During runtime everything runs client-side and there is no separate server-side communication involved. The viewer takes care an optimal image quality is served based on the screen resolution.
1214

1315
## Demo
1416

15-
http://oidamo.de/angular2-image-gallery/
17+
https://oidamo.de/angular2-image-gallery/
1618

1719
## How to use the gallery in your project
1820
### Pre-requirements
@@ -24,40 +26,22 @@ Install **node (>= 4.2.2)** and **graphicsmagick**: http://www.graphicsmagick.or
2426

2527
```bash
2628
npm install angular2-image-gallery --save
29+
npm install hammerjs --save
2730
```
2831

29-
#### 2. Import angular2-image-gallery in your Angular 2 module
32+
#### 2. Import angular2-image-gallery in your Angular module
3033

3134
```javascript
3235
imports: [
33-
BrowserModule,
34-
FormsModule,
35-
HttpModule,
36-
Angular2ImageGalleryModule <-----
36+
Angular2ImageGalleryModule
3737
],
3838
```
3939

40-
#### 3. Import scripts (when using angular-cli uncomment these lines in polyfills.ts)
40+
#### 3. Add hammer.js for support of mobile devices
4141

42+
Add the following line to your **main.ts** file:
4243
```javascript
43-
import 'web-animations-js/web-animations.min';
44-
import 'hammerjs/hammer';
45-
46-
import 'core-js/es6/symbol';
47-
import 'core-js/es6/object';
48-
import 'core-js/es6/function';
49-
import 'core-js/es6/parse-int';
50-
import 'core-js/es6/parse-float';
51-
import 'core-js/es6/number';
52-
import 'core-js/es6/math';
53-
import 'core-js/es6/string';
54-
import 'core-js/es6/date';
55-
import 'core-js/es6/array';
56-
import 'core-js/es6/regexp';
57-
import 'core-js/es6/map';
58-
import 'core-js/es6/set';
59-
60-
import 'web-animations-js';
44+
import 'hammerjs';
6145
```
6246

6347
#### 4. Run convert script
@@ -84,6 +68,7 @@ Additional optional parameter to support multiple galleries. Add it if you want
8468
[flexBorderSize]="3"
8569
[flexImageSize]="7"
8670
[galleryName]="'yourGalleryName'"
71+
[maxRowsPerPage]="100"
8772
(viewerChange)="yourNotificationFunction($event)">
8873
</gallery>
8974
```
@@ -105,9 +90,9 @@ This is possible, but not the intent of this project. Please [CLICK HERE](https:
10590

10691
## Currently used tools
10792

108-
- Angular 4.0.0
109-
- NodeJS 7.3.0
110-
- Angular-CLI 1.0.0
93+
- Angular 6.0.0
94+
- NodeJS 8.11.2
95+
- Angular-CLI 6.0.0
11196
- graphicsmagick
11297

11398
## Troubleshooting

0 commit comments

Comments
 (0)