Question · Vue.js course · Module 8: Slots & Dynamic Components

Slot fallback content

What happens when a parent doesn't pass content to a slot that has fallback content?

Answer options

  • Vue will display an error in the console
  • The slot won't be rendered at all
  • The fallback content defined between the <slot> tags will be displayed
  • The component won't compile

You can check the correct answer by solving this task in the CodeWorlds game.