Open Shivani-Parihar opened 6 years ago
+1
Hey, Do you have any error in the console ?
Add the IonicImageViewerModule
to your page' smodule.ts like this
import { NgModule } from '@angular/core';
import { IonicPageModule } from 'ionic-angular';
import { DemoPhotoShootPage } from './demo-photo-shoot';
import { TranslateModule } from '@ngx-translate/core';
import { IonicImageViewerModule } from 'ionic-img-viewer';
@NgModule({
declarations: [
DemoPhotoShootPage,
],
imports: [
IonicPageModule.forChild(DemoPhotoShootPage),
TranslateModule.forChild(),
IonicImageViewerModule,
],
})
export class DemoPhotoShootPageModule {}
After this it works fine :)
Please provide you version information :
I was able to get it working with creating my own instance of imageViewer
But as my app works, I have to get it working with just adding the imageViewer to img tag which does not work. Can you help out with why the below method does not work