named slot vue
<slot name="header"></slot>
<!--usage-->
<template v-slot:header>
<h1>Here might be a page title</h1>
</template>
named slot vue
<slot name="header"></slot>
<!--usage-->
<template v-slot:header>
<h1>Here might be a page title</h1>
</template>
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>
what is slot in vue.js
// app.vue
<template>
<current-user>
<template v-slot:default="slotProps">{{ slotProps.user.firstName }}</template>
</current-user>
</template>
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us