Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49217

Get name of selected data

$
0
0

@ImadEL wrote:

i have 2 pages, 1 page gives you a list of names and there address, the next page has to have the name of the selected name from the list in the title, like example you click from the list, address 1, then the title of the next page has to be address 1, this is what i already have =>

page 1 html

<ion-list>
  <ion-item *ngFor="let building of Buildings">
      Address: {{building.address}}, Name: {{building.name}}
    </ion-label>
  </ion-item>
</ion-list>

page 1 .ts

page 2

ion-header>
ion-toolbar>
ion-title> title selected building <title>
</ion-toolbar>
</ion-header>

page 2 .ts

Can someone Help me?
thanks in advance

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49217

Trending Articles