I have a component with two childcomponents. I show one or the other with using the router with the router-outlet.
I want to take form data inserted in the first child, and use it in the other child which I route to upon submitting the form.
I suspect I need to use @input or @output but I can't find any documentation on how to do it when using the router-outlet.
My current other solution is to save the data in the localstorage when submitting the form in the first child and calling it in the second child. Doesn't seem ideal.