export class AppComponent { lists: any=[ {id:1001,name:"html"}, {id:1002,name:"css"}, {id:1003,name:"js"} ]} <div *ngFor="let item of lists" :key="item.id"> {{item.name}}</div>