# Ngif inside ngFor with scroll

**URL:** <https://forum.ionicframework.com/t/ngif-inside-ngfor-with-scroll/121156>\
**Category:** ionic-v3\
**Created:** [February 11, 2018, 3:41pm UTC](https://forum.ionicframework.com/t/ngif-inside-ngfor-with-scroll/121156 "2018-02-11T15:41:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sofianeee](https://avatars.discourse-cdn.com/v4/letter/s/59ef9b/32.png) [@sofianeee](https://forum.ionicframework.com/u/sofianeee)\
**Post date:** [February 11, 2018, 3:41pm UTC](https://forum.ionicframework.com/t/ngif-inside-ngfor-with-scroll/121156/1 "2018-02-11T15:41:09Z")

</div>

Hi there ,  
I’m working on ionic 3 app and i’m facing a big problem , it’s about scroll  
the scroll event isn’t fired when i use two custom components with ngif directive , both of them are inside ngFor directive  
here is code : ( page-post-card & title-post-card ) are the custom components :  
Tahnks

```auto

  <ion-list item-start *ngFor=" let post of notif_rec">

    <page-post-card *ngIf="post?.type_notif=='rec'" [post]="post" [isNotif]=true>
    </page-post-card>

    <title-post-card *ngIf="post?.type_notif=='levelup'" [post]="post"> </title-post-card>

  </ion-list>

```

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 19, 2021, 9:51pm UTC](https://forum.ionicframework.com/t/ngif-inside-ngfor-with-scroll/121156/2 "2021-07-19T21:51:16Z")

</div>

Closed on July 19, 2021, 9:51pm UTC


