Pass data from child page to root page?

How do i pass the data from child page to root page before page loaded and before page unload.
Thanks in advance.

Declare an @Output property on the child component and subscribe to it in the parent. Sample data.

This only use between parrent component.page and child component. Child must be component test many time it’s wrong work on page to page.
anyway thanks man.

Have you tried using NavParams?

Navparam can’t do it too. I make a providersto done that.

Yeah, passing data between child views and the parent navRoot isn’t possible at this moment. The best bet though would be to use a provider that handles the data mgmt. It’s what they’re made for.