Menu
×
×
Correct!

Exercise:

When a text is provided between the start tag and end tag of a component like this:

<comp-one>Hello World!</comp-one>

The text provided can be received in the component using slots, like this:

<template> <div> <p>CompOne.vue</p> <slot></slot> </div> </template>
<template> <div> <p>CompOne.vue</p> <slot/> </div> </template>
<template> <div> <p>CompOne.vue</p> <slot /> </div> </template>

Not Correct

Click here to try again.

Correct!

Next ❯
<template>
  <div>  
    <p>CompOne.vue</p>
    
  </div>
</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: