lesson 112: only display the header is there is content

This commit is contained in:
Andreas Zweili 2021-02-07 10:48:54 +01:00
parent 271c06abce
commit cf7b57dfb2
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
<template>
<div>
<header>
<header v-if="$slots.header">
<slot name="header"></slot>
</header>
<slot></slot>