navParams get Mouse Event


#1

Hi, i have a problem :slight_smile:

i try to create a gallery grid with zoom in other page

now i create the gallery grid with this

<div id="section-photos">
    <div class="title">
      <h6>Photos</h6>
    </div>
    <ion-col width-25 *ngFor="let photo of photoitems" (click)="photoSlide($event, photo)">
      <div class="photo-container" [ngStyle]="{'background-image': 'url(' + photo.images[0].source + ')'}">
      </div>
    </ion-col>
  </div>

It’all ok and in the other page the navParams.get intercept the photoitem. Now if I want to know the index of item that I pass how can I do?

So i pass this value in my sliderOptions and assign it at initialSlide option