How to show get data that take from one page to another?

#1

Dear Friends,

I can take form value data from one page to another using Navigation and can alert that value in respective .ts file. But my doubt is how I can show it properly in the html form…

My function to go next page is :

 goToPay(username,color){
  this.navCtrl.push(this.payPage, {
          userData: "user"+"="+username+"&clr="+color
      });
 }

But on display same in .html i get it as

user=lops&clr=Julianne.OConner@kory.org

My need is show it in html as

User : lops

Color: Julianne.OConner@kory.org

Please advise a simple solution for same

Thanks

Anes

#2

Dear Friends Got solution …

goToPay(username,color){
  this.navCtrl.push(this.payPage, {
          //userData: "user"+"="+username+"&clr="+color
          param1: username, param2: color
      });
 }

Fixed … Thanks

Anes