< div id= "test" v-if= "seen" > ≪ p > Aiueo < /p > ≪ button @click= "remove" > Delete < /button > ≪ /div >
When I click the button in the above HTML, seeen becomes false and I wrote a vue that disappears entirely, but it doesn't seem to work.
< div id= "test" > ≪ p v-if= "seen" > Aiueo < /p > ≪ button @click= "remove" > Delete < /button > ≪ /div >
Next, if you set v-if to p, which is a sibling element of button, that sibling element seems to disappear and work.
What I want to do is delete the parent element div, is that impossible?