Skip to content

Global component doesn't work with emit value passing via child component ? #6091

Discussion options

You must be logged in to vote

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 like resolveDynamicComponent(comp).

resolveDynamicComponent wraps the resolveComponent function, that can accept the component name as a string.

Have you tried doing setActivePage('TeamsList') and setActivePage('UsersList')?

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@chrisnaadhi
Comment options

Answer selected by chrisnaadhi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants