Home>
<
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?
Related questions
- javascript : Why is the page not scrolling to the anchor?
- javascript : VueJS Outputting html through a function
- javascript : Location of product cards with a line break
- javascript : What to do with the "restart" button?
- javascript : How to set an event to beep
- javascript : Slow scrolling of one block when scrolling the page
- drag &drop in javascript
- javascript : Regex how to parse a string
- javascript : Vue: Get method from component that is in scoped slot