Positioning array elements and calling in my order


#1

i have an array of players and i can loop through them to display a list.
i would like to include a title and some more once off information. is it possible to save this information in the array say at position 0 and then recall it in the html.

save code is:
text: ‘Save’,
handler: data => {
this.players.push({
name: data.name,
phone: data.phone

and html is:

<ion-list *ngFor="let list of lists" >
<ion-card>
  
  <ion-card-content>
{{list.name}}

this code loops through everything but can i just retrieve one element and display that.


#2

How about {{lists[0].name}}?