Notice: The Monaca & Onsen UI Community Forum is shutting down.
For Onsen UI bug reports, feature requests and questions, please use the Onsen UI GitHub issues page. For help with Monaca, please contact Monaca Support Team.
Thank you to all our community for your contributions to the forum. We look forward to hearing from you in the new communication channels.
[Onsen UI 2 | Angular 2] ons-navigator - how to pass events or values back to previous page?
ypniag last edited by
Using the navigator I want to navigate to a new page, select a value and return the selected value to the original page. Both pages are separate components in separate files. I know it’s possible to supply a data value in the ‘options’ when calling popPage, but how would the original page know that there is a new value? Is there a callback or event when the page is re-opened or when a new page.data value is set? Or is there perhaps an even better way to achieve this?
@ypniag I know you have stated you are using Angular 2; however, this tutorial shows how to do this with Vanilla. It may provide you a starting point to implement it in Angular.