I have a ParentComponent with a ChildComponent that contains another ChildComponent(ResultList in a sidebar)
In the ParentComponent I open a dialog with a similar ResultList from the sidebar- technically it is the same component - but it has more items.I try to select some of the values in the dialog and then I want to push them to the first ResultList in the sidebar again.
Now I'm trying to pass the resultList variable to each component to get my list updated in the sidebar, but it seems a little bit complex.
If you (hopefully) unterstand my problem - Do you have any other ideas how can I update my sidebarcomponent from the modal dialog?
If you have further questions - please ask :)
BehaviorSubjectexposedasObservableandsubscribeto it in all the components where you want to get the updatedresultList