I have implemented a modal in the root component that can be triggered from anywhere. However, I am facing a dilemma on how the bottom component can communicate with the top component without excessive use of callback functions.
Root Component
<container></container>
<modal hide="true"></modal>
Container Component
<another-container></another-container>
Another Container Component
<child-that-trigger-modal></child-that-trigger-modal>
Essentially, I am looking for a simple and elegant solution for the bottom component (child-that-trigger-modal) to communicate with the top component (root) that contains the modal, without the need for excessive data passing and callback functions.