Ionic v2: Send params between pages (When cliking on the return nav button) using navParam


#1

Does anyone know how returns a simple value (or JSON) by clicking on the nav return button on ionic (v2)? I know that navParam is able to send a value on push, but I didn’t find anything about the pop action and connect the return nav button to my new pop action.


Ionic 2 pop with parameters
#2

You can use modals insted of push.

Modals can send values back, when you leave the page.

Or you can use Events that is in ionic-angular package.

You can see how to use them in docs. It’s explained pretty well!


#3

Thanks you very much