Menu
×
×
Correct!

Exercise:

Which Vue specific component do we use when animating a single element?

<template> <h1>Add/Remove <p> Tag</h1> <button @click="this.exists = !this.exists">{{btnText}}</button><br> <Transition> <p v-if="exists">Hello World!</p> </Transition> </template>
<template> <h1>Add/Remove <p> Tag</h1> <button @click="this.exists = !this.exists">{{btnText}}</button><br> <transition> <p v-if="exists">Hello World!</p> </transition> </template>

Not Correct

Click here to try again.

Correct!

Next ❯
<template>
  <h1>Add/Remove <p> Tag</h1>
  <button @click="this.exists = !this.exists">{{btnText}}</button><br>
  <>
    <p v-if="exists">Hello World!</p>
  </>
</template>

    
  




Log in to keep your progress
Sign up to keep your progress

Completed 0 of 54 Exercises:

VUE Get started
VUE Directives
VUE Methods
VUE Computed
VUE Watchers
VUE Scaling up
VUE Components
VUE Slots
VUE Refs
VUE Lifecycle hooks
VUE Provide/Inject
VUE Routing
VUE Animations
VUE Build

×

Reset the Score?

This will reset the score of ALL 54 exercises.

Are you sure you want to continue?



×

Congratulations!

You have finished all 54 VUE exercises.

Share your score: