Skip to content

Commit

Permalink
Fixed the production bug
Browse files Browse the repository at this point in the history
  • Loading branch information
nikini committed Jul 23, 2017
1 parent da6d4d3 commit c86f647
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ npm install ionic-gallery-modal --save
and then, within your application module

```
import { GalleryModalModule, GalleryModalHammerConfig } from 'ionic-gallery-modal';
import * as ionicGalleryModal from 'ionic-gallery-modal';
import { HAMMER_GESTURE_CONFIG } from '@angular/platform-browser';
```

Expand All @@ -36,7 +36,7 @@ and add the `GalleryModalModule` to your imports
```
imports: [
//...
GalleryModalModule,
ionicGalleryModal.GalleryModalModule,
//...
],
```
Expand All @@ -48,7 +48,7 @@ providers: [
//...
{
provide: HAMMER_GESTURE_CONFIG,
useClass: GalleryModalHammerConfig,
useClass: ionicGalleryModal.GalleryModalHammerConfig,
},
//...
],
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ionic-gallery-modal",
"version": "0.2.0",
"version": "0.2.1",
"description": "Ionic Gallery Modal (to preview photos)",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { NgModule } from '@angular/core';
import { NgModule, ModuleWithProviders } from '@angular/core';
import { CommonModule } from '@angular/common';
import { HAMMER_GESTURE_CONFIG } from '@angular/platform-browser';
import { IonicModule } from 'ionic-angular';

import { ZoomableImage } from './zoomable-image/zoomable-image';
Expand All @@ -25,10 +24,11 @@ import { GalleryModalHammerConfig } from './overrides/gallery-modal-hammer-confi
exports: [
ZoomableImage,
GalleryModal,
TouchEventsDirective,
],
entryComponents: [
GalleryModal,
],
})
export class GalleryModalModule {}
export { ZoomableImage, GalleryModal, GalleryModalHammerConfig }
export { ZoomableImage, GalleryModal, GalleryModalHammerConfig, TouchEventsDirective }
2 changes: 1 addition & 1 deletion src/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ionic-gallery-modal",
"version": "0.2.0",
"version": "0.2.1",
"repository": {
"type": "git",
"url": "https://github.com/nikini/ionic-gallery-modal"
Expand Down

0 comments on commit c86f647

Please sign in to comment.