# Sroll to specific element in list in Ionic 4

**URL:** <https://forum.ionicframework.com/t/sroll-to-specific-element-in-list-in-ionic-4/164519>\
**Category:** Ionic Framework\
**Created:** [May 22, 2019, 12:51pm UTC](https://forum.ionicframework.com/t/sroll-to-specific-element-in-list-in-ionic-4/164519 "2019-05-22T12:51:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![max\_maeuschen](https://avatars.discourse-cdn.com/v4/letter/m/c89c15/32.png) [@max\_maeuschen](https://forum.ionicframework.com/u/max_maeuschen)\
**Post date:** [May 22, 2019, 12:51pm UTC](https://forum.ionicframework.com/t/sroll-to-specific-element-in-list-in-ionic-4/164519/1 "2019-05-22T12:51:34Z")

</div>

In Ionic 3 my app has an alphabetical index for a long list to scroll to the items. I use the following code in html for the list:

```
<ion-list>  
  <ion-item-group *ngFor="let group of groupedItems">
      <ion-item-divider id="{{group.letter}}">{{group.letter}}</ion-item-divider>
      <ion-item button *ngFor="let item of group.items" (click)="select(item)" [class.selected]="item.selected === true">
        {{ item.schueler.nachname }} {{ item.schueler.vorname }}
      </ion-item>
    </ion-item-group>
  </ion-list>

```

An for the alphabetical Index:

```
<div id="alphaIndex" #alphaIndex>
  <div class="fast-scroll-container">
    <span *ngFor="let index of indexes">
      <a href="#{{index}}">{{index.toUpperCase()}}</a>
    </span>
  </div>
</div>

```

How can I achieve the same in Ionic 4? What is the equivalent syntax for href="…"?
