How we select data from different page and then save in our database in ionic

#1

I have four pages first add patient then add medicine and then add schedule and last create a reminder because they all are related to each other. I want to add data in the database in the schedule page, so how can we navigate all data using checkbox and or push the data into schedule page and than add it into the database.

*ignore Grammar Mistake

#2

Use NavParams https://ionicframework.com/docs/v3/api/navigation/NavParams/
currentPage.ts
``this.navCtrl.push(“NextPage”,{‘ParamValue1’:this.anArray1,‘ParamValue2’:this.anArray2});

In NextPage.ts
constructor(public navCtrl: NavController, private storage: Storage, public navParams: NavParams) {
this.anArray1 = navParams.get(‘ParamValue1’);
this.anArray2 = navParams.get(‘ParamValue2’);
}

#3

thanks for replying me, i will inform you soon if it work for me.