Extract data from database and put it in items

Hi dear all , i got a list of students in a database and i wonna show every single student in an item of a list , first of all i extract data from the database using php json , then what should i write in my html code or Ts !! any ideas please ?

<ion-list>
<ion-item> username of student 1 </ion-item>
<ion-item> username of student 2 </ion-item>
....
</ion-list>

Hello,
take a look to structural directive ngFor https://angular.io/guide/structural-directives or https://www.concretepage.com/angular-2/angular-4-ngfor-example

Best regards, Erina Nakiri

2 Likes