Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

Show fields of two webservices in the same ion-item populated with * ngFor

$
0
0

@julianluis wrote:

I would like a tip, I populate a list with data coming from a webservice, through code:

 <ion-list>
        <ion-item *ngFor="let item of itens">
            {{item.id}}
            {{item.date}}
            {{item.anotherField}} //field from a request at another endpoint
        </ion-item>
</ion-list>


But in the item has an id that I need to use to make another request, how could I do this the moment I fill in the list?

I need to create an array, scroll and order for each id and then define that array in the * ngFor of the ion-list?

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>