NavController: pass data back to parent page


#1

Hi,
my first post here.
I have an on screen keyboard page which I display with the nav controller:
this.navCtrl.push(KeyboardPage, {title:“Enter Name”, value:""});
What’s the best way to pass the entered text back to the parent page?

Thanks!


#2

I found a nice solution following the delegate pattern in iOS.
Pass “this” as delegate to the keyboard page and call a method on the delegate when keyboard return pressed.