Cristiano Magro
2025-01-05 20827a1da0db1bce02767505fa1c0a77cd25ba62
09 - deeper into components/cmp-adv-01-starting-setup/src/components/BaseCard.vue
@@ -1,7 +1,9 @@
<template>
    <div>
        <header>
            <slot name="header"></slot>
        <header v-if="$slots.header">
            <slot name="header">
                <!-- <h2>Default Title </h2> -->
            </slot>
        </header>
        <slot></slot>
    </div>
@@ -9,6 +11,9 @@
<script>
export default {
    mounted() {
        console.log(this.$slots);
    }
}
</script>