You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 24, 2020. It is now read-only.
how to pass data parent event function who can get data emitted by child component in Router.renderSync used in your Demo Project . Who to pass data to component and Because we are appending
Hey, sorry I saw the issue you created in Marko (marko-js/marko#725) before this one. Unfortunately, this module does not support emitting events from child components to the parent. Like I said in the other issue, your best bet for intercommunication for components rendered via the router would be to use something like redux or maybe some sort of event bus that components share.
A feature like this will probably require quite a few changes to how the router functions. I'll consider adding this feature in future releases.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
how to pass data parent event function who can get data emitted by child component in Router.renderSync used in your Demo Project . Who to pass data to component and Because we are appending
What I need
example :-
in Parent App component
class {
clickHomePage (){
}
}
in child component
Class {
emitDataToParent(){
this.emit("clickHome", {page :"home"})
}
}
The text was updated successfully, but these errors were encountered: