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

Purpose of Teleport

What is <Teleport> used for in Vue?

Answer options

  • For navigating between pages
  • For sending data between components
  • For lazy loading components
  • For rendering content in a different place in the DOM, outside the component hierarchy

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