# Ion-Progress-Bar Inside ngFor List Showing For Every Item

**URL:** <https://forum.ionicframework.com/t/ion-progress-bar-inside-ngfor-list-showing-for-every-item/154938>\
**Category:** Ionic Framework\
**Created:** [January 31, 2019, 7:24pm UTC](https://forum.ionicframework.com/t/ion-progress-bar-inside-ngfor-list-showing-for-every-item/154938 "2019-01-31T19:24:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ewgiddings](https://avatars.discourse-cdn.com/v4/letter/e/a6a055/32.png) [@ewgiddings](https://forum.ionicframework.com/u/ewgiddings)\
**Post date:** [January 31, 2019, 7:24pm UTC](https://forum.ionicframework.com/t/ion-progress-bar-inside-ngfor-list-showing-for-every-item/154938/1 "2019-01-31T19:24:10Z")

</div>

```auto
<ion-item-sliding *ngFor="let item of items">
    <ion-item *ngIf="lessonSegment == 'available'" (click)="download()">
      <ion-row>
      <ion-progress-bar *ngIf="downloading" color="primary" value="0.5" size="12"></ion-progress-bar>
      <ion-col size="12">
        {{item.name}}
      </ion-col>
      <ion-col size="12">
        {{item.description}}
      </ion-col>
    </ion-row>
    <div slot="end" class="download-text">Download</div>
    </ion-item>

```

When I add a progress bar to this ngFor with a boolean ngIf set to true once download starts, then the progress shows up for every item, not just the one clicked.

How do I have it only show up for the item that has been clicked?

---

<div class="post-metadata">

**Author:** ![mburger81](https://avatars.discourse-cdn.com/v4/letter/m/bc8723/32.png) [@mburger81](https://forum.ionicframework.com/u/mburger81)\
**Post date:** [March 5, 2019, 7:39am UTC](https://forum.ionicframework.com/t/ion-progress-bar-inside-ngfor-list-showing-for-every-item/154938/3 "2019-03-05T07:39:12Z")

</div>

you have to check for something which is reffered to the ITEM in the \*ngFor

so pass in the click event the item and set in the component `item.downloading = true`  
`(click)="download(item)"&gt;`  
next check in the progressbar for it  
`&lt;ion-progress-bar *ngIf="item.downloading" color="primary" value="0.5" size="12"&gt;&lt;/ion-progress-`bar\>
