#Passing data between components

1 messages · Page 1 of 1 (latest)

sullen pond
#

Hi, I have feature for updating user data, 3 components tree - feature -> ui -> form, what is the best option to pass data from form to feature component? emit output is ok?
are there any better options?

real kelp
#

Personally, I'd rather use outputs only for direct hiers: child to parent.
In this case, the message should bubble up a level more, so you could use a shared service.
But if you think that's overkill, you can always replicate the output from ui to feature.