Hi peter,
I’m using this option and it works but since it’s async, the data will be undefined outside of the function. I don’t want to put the rest of my code all in this function either. How to solve it? thx.
What I would do is use injected service providers to transfer data between pages, not the router. That way you can expose an Observable in the provider, and subscribe to it in each page that cares.