Answers for "v slot"

C#
3

v-slot

<base-layout>
  <template v-slot:header>
    <h1>Here might be a page title</h1>
  </template>

  <p>A paragraph for the main content.</p>
  <p>And another one.</p>

  <template v-slot:footer>
    <p>Here's some contact info</p>
  </template>
</base-layout>
Posted by: Guest on June-07-2021
-1

vuejs how use this.$slots.default

console.log(this.$slots.default());
Posted by: Guest on January-12-2021

C# Answers by Framework

Browse Popular Code Answers by Language