The video for this lesson is currently being updated, please read the transcript instead.

Teleporting content

Let'snow and look at another new feature of Vue 3 called teleport.

If you've ever created a modal window feature before, you'll know that it's commonly positioned just before the closing </body> tag in the document.

public/index.html

<body>
  <div>
    <!--main page content here-->
  </div>
  <!--modal here-->
</body>

This is done because modals usually have a page-covering background.

To view the complete lesson you'll need to login or join this course.


Click to load comments...