I’m not going to go into detail to save data into a SQLLite DB, but I’ll give you an example on how to get data back from a modal.
ParentPage:
let modal = this.modalCtrl.create(OrdercreateModal);
modal.present();
modal.onDidDismiss((data) =>
{
console.log(data)
})
ModalPage: this.viewCtrl.dismiss(data);
So when closing a modal (using dismiss(), you can pass some data).
Using the onDidDismiss callback when creating the modal, you can get the data the modal returns.