# Scroll to a specific index into a list

**URL:** <https://forum.ionicframework.com/t/scroll-to-a-specific-index-into-a-list/199250>\
**Category:** ionic-v1\
**Created:** [November 7, 2020, 4:56pm UTC](https://forum.ionicframework.com/t/scroll-to-a-specific-index-into-a-list/199250 "2020-11-07T16:56:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alphadjo](https://avatars.discourse-cdn.com/v4/letter/a/f4b2a3/32.png) [@Alphadjo](https://forum.ionicframework.com/u/Alphadjo)\
**Post date:** [November 7, 2020, 4:56pm UTC](https://forum.ionicframework.com/t/scroll-to-a-specific-index-into-a-list/199250/1 "2020-11-07T16:56:33Z")

</div>

HI,

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

```auto
<ion-list 

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

  <ion-card>

    <ion-grid>

      <ion-row>

        <ion-col>

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

        </ion-col>

        <ion-col>
          <ion-label>{{ data.detail }} </ion-label>
        </ion-col>
        
      </ion-row>
    </ion-grid>
    
  </ion-card>

```

---

<div class="post-metadata">

**Author:** ![EinfachHans](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/einfachhans/32/130917_2.png) [@EinfachHans](https://forum.ionicframework.com/u/EinfachHans)\
**Post date:** [November 7, 2020, 5:04pm UTC](https://forum.ionicframework.com/t/scroll-to-a-specific-index-into-a-list/199250/2 "2020-11-07T17:04:20Z")

</div>

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