Not-related Components

suggest change

If your components do not have a parent-child relationship (or are only distantly related, such as a great-great-grandchild), the way to communicate is a signal that one component subscribes to and the other writes to.

Those are the two basic operations of any event system: subscribe/listen to an event to be notified, and send/trigger/publish/dispatch an event to notify whoever wants to know.

There are at least 3 patterns to do that. You can find a comparison here.

Here is a brief summary:

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents