Scroll to a specific index into a list


I would like to scroll to a specific of my by clicking on a button by passing the item position.

How can do it by using the index from *ngFor ?

Many thanks in advance


<ng-container *ngFor="let data of myArray; let i = index" > 





          <ion-label> {{ data.title }} </ion-label>


          <ion-label>{{ data.detail }}  </ion-label>

I think would try to determ the coordinates of the item and then use the scrollTo Method of the IonContent