Skip to content

Latest commit

 

History

History
23 lines (13 loc) · 2.18 KB

File metadata and controls

23 lines (13 loc) · 2.18 KB

DOM Portal easy #Components #Built-ins

By webfansplz @webfansplz

Take the Challenge    简体中文

Vue.js provides a built-in component that renders its slot content to another part of the DOM.

Do you know the built-in component?. Lets try it 👇:

<script setup>

const msg = "Hello World"

</script>

<template>
  <!-- Renders it to a child element of the `body` -->
  <span>{{ msg }}</span>
</template>


Back Share your Solutions Check out Solutions