Menu
×
×
Correct!

Exercise:

If a component 'CompOne' has two slots, like this:

<slot name="headerSlot"></slot>

<slot name="mainSlot"></slot>

How can we, from App.vue, direct the text 'Animals are interesting!' into the slot 'mainSlot' in 'CompOne'?

<slot-comp v-slot:mainSlot> Animals are interesting! </slot-comp>
<slot-comp #mainSlot> Animals are interesting! </slot-comp>

Not Correct

Click here to try again.

Correct!

Next ❯
<slot-comp >
    Animals are interesting!
</slot-comp>

    
  




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: