Question · Vue.js course · Module 8: Slots & Dynamic Components
Named slot syntax in child
How do you define a named slot in a child component?
Answer options
- <slot id="header"></slot>
- <slot name="header"></slot>
- <named-slot="header"></named-slot>
- <template name="header"></template>
You can check the correct answer by solving this task in the CodeWorlds game.