0👍
I believe that what you are trying to do can be achieved by having a root component which can include your component as a child component.
If you need that one component will appear several times in the same page, this is the direction:
Base component:
import ChildComponent from './ChildComponent';
export default {
components: {
ChildComponent
},
:
:
Then you can simply include it (<child-component/>
) in any place you need.
Notice, that in this case the new parent component is the one you need to assign to your vueInstance
in order to become the root.
Source:stackexchange.com