Skip to content

Calling $parent from an async component. #10723

Closed Answered by grey-dev-0
grey-dev-0 asked this question in Help/Questions
Discussion options

You must be logged in to vote

Alright, I'll answer my own question in hopes for other backend developers intruding into frontend community - like myself - to find the answer, long story short the answer is not by $emitting events, the answer is by using provide in components higher in the hierarchy and, inject in their descendant components like documented here.

Thus you can directly access ancestor components' data, props and, methods without worrying about other components taking place in between like the AsyncComponentWrapper mentioned in this questions, there are some caveats to look out for but, all is documented in the mentioned reference.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by grey-dev-0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant