# Multiple ngFor into ionic list, duplicate informations

**URL:** <https://forum.ionicframework.com/t/multiple-ngfor-into-ionic-list-duplicate-informations/115833>\
**Category:** ionic-v3\
**Created:** [December 19, 2017, 10:49am UTC](https://forum.ionicframework.com/t/multiple-ngfor-into-ionic-list-duplicate-informations/115833 "2017-12-19T10:49:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JEricaM](https://avatars.discourse-cdn.com/v4/letter/j/b77776/32.png) [@JEricaM](https://forum.ionicframework.com/u/JEricaM)\
**Post date:** [December 19, 2017, 10:49am UTC](https://forum.ionicframework.com/t/multiple-ngfor-into-ionic-list-duplicate-informations/115833/1 "2017-12-19T10:49:59Z")

</div>

Hi!  
In my page I have an Avatar list (from the ionic tutorial) where I want to show my database informations. I need to use two ngFor (one for the description and one for the data), but the result of my code it’s a duplicated list (if I have 3 entries from the query, all the informations are duplicated for 3, if I have 4, duplicated for 4 etc…).  
This is what I obtain:

 ![Senza titolo 1](https://global.discourse-cdn.com/ionicframework/original/3X/5/3/539c7b25c72d193077caf22e1d7a1a27bac698b7.png)

This is what I want to achieve:  
 ![Senza titolo 2](https://global.discourse-cdn.com/ionicframework/original/3X/9/d/9d3674439cd6b4c39efe1ba69de90625a14e316a.png)

This is my code:

```auto
 <ion-list >
         <div *ngFor="let elenco of achievements_INFO;">
                  <div *ngFor="let data of achievements_INFO_data;">
                    <ion-item >
                      <ion-avatar item-start>
                        <ion-icon name="chatboxes" style="font-size: 50px"></ion-icon>
                      </ion-avatar>
                      <h3 text-wrap >{{elenco}}</h3>
                      <p >{{data | date: 'dd/MM/yyyy'}}</p>
                    </ion-item>
                  </div>
                </div>
 </ion-list>

```

I don’t know how to make it works. I saw that someone use `<template>`, I tried it but nothing worked! How can I fix it?

---

<div class="post-metadata">

**Author:** ![nunoferreira](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/nunoferreira/32/130642_2.png) [@nunoferreira](https://forum.ionicframework.com/u/nunoferreira)\
**Post date:** [December 19, 2017, 11:01am UTC](https://forum.ionicframework.com/t/multiple-ngfor-into-ionic-list-duplicate-informations/115833/2 "2017-12-19T11:01:50Z")

</div>

I think the best way to do that is to assing data properties to each elenco on controller. Or you can use ngIf on ion-item to just show the data of the user that ngFor is going through.

---

<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:58pm UTC](https://forum.ionicframework.com/t/multiple-ngfor-into-ionic-list-duplicate-informations/115833/3 "2021-07-19T21:58:53Z")

</div>

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


