Click in order · Vue.js course · Module 8: Slots & Dynamic Components
Dynamic component syntax
Arrange the code for a dynamic component with buttons:
Items to click
- <button @click="current = OxygenPanel">
- :is="current" />
- <component
- Oxygen</button>
You can check the correct answer by solving this task in the CodeWorlds game.