Rendering Multiple components
using dynamic components
#10755
Unanswered
Aritra8438
asked this question in
Help/Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, all!
I have been working on a project that uses Vue3 and I encountered the following difficulty.
Here is the Vue3 documentation for the relevant part.
Suppose we have the following
template
:We can do the following instead (rather to keep the dynamic components alive):
Now let's take a similar situation:
i.e. I just want to render multiple components when a single condition is true (i.e. to use
keep-alive
withcomponent
). How can I do that?One obvious way might be to create a component for
counter
andtimer
and import it to render a single component, apart from that any handy solution to this?Beta Was this translation helpful? Give feedback.
All reactions