ionic2 - Photo Viewer not working -


.html

<img *ngif=new.preview_image1 src="{{new.preview_image1}}" (click)="zoomimage(new)"/> 

ionic document(ionic documentation) show me, src="path", data form service, if use src="{{new.preview_image1}}" error showing.

.ts

  zoomimage(imagedata) {       this.photoviewer.show(imagedata);   } 

i try use this, when build in ios device when click image, loading no responing.

change (click)="zoomimage(new)" (click)="zoomimage(new.preview_image1)".

<img *ngif=new.preview_image1 [src]="new.preview_image1" (click)="zoomimage(new.preview_image1)"/> 

Comments

Popular posts from this blog

string - Using python and postgres, variables within execute function? -

android - How to get the Uri path from a ImageView? -