Pass data from child page to root page?


#1

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


#2

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


#3

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.


#4

Have you tried using NavParams?


#5

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


#6

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.