Skip to content

Commit c86f647

Browse files
committed
Fixed the production bug
1 parent da6d4d3 commit c86f647

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ npm install ionic-gallery-modal --save
2727
and then, within your application module
2828

2929
```
30-
import { GalleryModalModule, GalleryModalHammerConfig } from 'ionic-gallery-modal';
30+
import * as ionicGalleryModal from 'ionic-gallery-modal';
3131
import { HAMMER_GESTURE_CONFIG } from '@angular/platform-browser';
3232
```
3333

@@ -36,7 +36,7 @@ and add the `GalleryModalModule` to your imports
3636
```
3737
imports: [
3838
//...
39-
GalleryModalModule,
39+
ionicGalleryModal.GalleryModalModule,
4040
//...
4141
],
4242
```
@@ -48,7 +48,7 @@ providers: [
4848
//...
4949
{
5050
provide: HAMMER_GESTURE_CONFIG,
51-
useClass: GalleryModalHammerConfig,
51+
useClass: ionicGalleryModal.GalleryModalHammerConfig,
5252
},
5353
//...
5454
],

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ionic-gallery-modal",
3-
"version": "0.2.0",
3+
"version": "0.2.1",
44
"description": "Ionic Gallery Modal (to preview photos)",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

src/index.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
import { NgModule } from '@angular/core';
1+
import { NgModule, ModuleWithProviders } from '@angular/core';
22
import { CommonModule } from '@angular/common';
3-
import { HAMMER_GESTURE_CONFIG } from '@angular/platform-browser';
43
import { IonicModule } from 'ionic-angular';
54

65
import { ZoomableImage } from './zoomable-image/zoomable-image';
@@ -25,10 +24,11 @@ import { GalleryModalHammerConfig } from './overrides/gallery-modal-hammer-confi
2524
exports: [
2625
ZoomableImage,
2726
GalleryModal,
27+
TouchEventsDirective,
2828
],
2929
entryComponents: [
3030
GalleryModal,
3131
],
3232
})
3333
export class GalleryModalModule {}
34-
export { ZoomableImage, GalleryModal, GalleryModalHammerConfig }
34+
export { ZoomableImage, GalleryModal, GalleryModalHammerConfig, TouchEventsDirective }

src/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ionic-gallery-modal",
3-
"version": "0.2.0",
3+
"version": "0.2.1",
44
"repository": {
55
"type": "git",
66
"url": "https://github.com/nikini/ionic-gallery-modal"

0 commit comments

Comments
 (0)