how to destroy component created by render(vnode) #7242
Unanswered
coader
asked this question in
Help/Questions
Replies: 2 comments 1 reply
-
sorry, I made a mistake, when I call render to the same container for multi times, it only keep the last component, so how can I append vue component to a exists html element without any div wrapper? |
Beta Was this translation helpful? Give feedback.
0 replies
-
and I can't get template ref for this:
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
if use app.mount, it's easy to unmount it, but this create new appContext
now I use render to create component and share current appContext
most examples use document.createElement to create a new html element(named parent), and render to this element as parent container
and call render(null, parent) to destroy
but what I need is only append this component to a existed contenteditable div(named container), I use
render(comp, parent) and it works. and I create multi components by this method, so how to destory or dispose them?
Beta Was this translation helpful? Give feedback.
All reactions