Global component doesn't work with emit value passing via child component ? #6091
Answered
by
leopiccionia
chrisnaadhi
asked this question in
Help/Questions
-
Beta Was this translation helpful? Give feedback.
Answered by
leopiccionia
Jun 10, 2022
Replies: 1 comment 1 reply
-
When registering a global component, the component doesn't become a global variable. To use the component as a variable, you have to import it. But there's another way: Currently,
Have you tried doing |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
chrisnaadhi
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When registering a global component, the component doesn't become a global variable. To use the component as a variable, you have to import it. But there's another way:
Currently,
<component :is="comp"/>
is compiled to something likeresolveDynamicComponent(comp)
.resolveDynamicComponent
wraps theresolveComponent
function, that can accept the component name as a string.Have you tried doing
setActivePage('TeamsList')
andsetActivePage('UsersList')
?