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

Practice: Teleport modal

Create an alert modal that renders directly in the body - like an alert on the station's main screen.

Task

Create an AlertModal component using <Teleport to="body"> to render the modal outside the component hierarchy.