Answer the question
In order to leave comments, you need to log in
How to remove parent element of Vue component after export?
<template>
<h1>Vue.js</h1>
<p>Hello</p>
<img src="">
</template>
template syntax error Component template should contain exactly one root element
<template>
<div>
<h1>Vue.js</h1>
<p>Hello</p>
<img src="">
</div>
</template>
Answer the question
In order to leave comments, you need to log in
Either so, through the render() function - https://jsfiddle.net/0u4t1nn6/1/
Or access the DOM
or so, if necessary, from the parent
and remove the wrapper.
Try wrapping your template in a transition-group
You are doing something wrong architecturally</зануда моде>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question