Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pubsub between parent and child component #326

Open
yapcheahshen opened this issue Nov 24, 2013 · 2 comments
Open

Pubsub between parent and child component #326

yapcheahshen opened this issue Nov 24, 2013 · 2 comments

Comments

@yapcheahshen
Copy link

Assume that:
aura_components/mainview_widget // a tabs interface
aura_components/tab_widget
aura_components/A_widget
aura_components/B_imp1_widget
aura_components/B_imp2_widget

mainview_widget has children A_widget and multiple instances of tab_widget
tab_widget has children A and B ( either B_imp1_widget or B_imp2_widget)

My questions:

  1. How could A_widget get it's parent view object without knowing the component name? is there a cleaner way than "use jQuery parent() recursively and look for div with data-aura-widget attribute, get the backbone view object from the doc node "
  2. How could tab_widget notify only child components via emit/on without knowing component name?
  3. How could tab_widget notify a certain type of children regardless of the implementation name, e.g, notifying "B" instead of B_imp1, B_imp2 .
@josephspens
Copy link

What kind of interactions are these components making between each other that require them to know about each other?

@yapcheahshen
Copy link
Author

Thanks for the attention but now I'm using React.js

2015-07-26 8:24 GMT+08:00 Joseph Spens [email protected]:

What kind of interactions are these components making between each other
that require them to know about each other?


Reply to this email directly or view it on GitHub
#326 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants