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

Getting access to parent component information #39

Closed
hafizio opened this issue Sep 15, 2016 · 1 comment
Closed

Getting access to parent component information #39

hafizio opened this issue Sep 15, 2016 · 1 comment

Comments

@hafizio
Copy link

hafizio commented Sep 15, 2016

Thank you for such an amazing library! I can't image all the efforts being put into making this library and sharing it with the community.

  1. I need to access ParentXComponent from ChildXComponent. I can't find a way to access details in the parent such as the parent origin or source. I've tried to use window.parent, event.source but can't seem to make it work.
  2. Is there any way to access parents information after outside the attach callback in the child.

Thanks!

@hafizio
Copy link
Author

hafizio commented Sep 21, 2016

I figured out a way to have access to the props by assigning the attach function to a global variable. Thanks!

@hafizio hafizio closed this as completed Sep 21, 2016
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

1 participant