0
How to pass a parameter (id) between screens?
I tried Navparams, but I couldn’t do what I wanted. I would like to place the ID on the ion-item and when I click it send the id to another screen.
0
How to pass a parameter (id) between screens?
I tried Navparams, but I couldn’t do what I wanted. I would like to place the ID on the ion-item and when I click it send the id to another screen.
0
Just pick up by the navParams.
To pass the id do the following:
this.navCtrl.push(TestePage, {id: '1'});
Down at Testepage, you get with:
let id_objeto = this.navParans.get(id);
Browser other questions tagged angular ionic2
You are not signed in. Login or sign up in order to post.
Grateful lazyFox, for the edition! !
– Diego Ferreira