[Vuejs]-Passing props from page layout through parent slot into child component

0👍

You should be able to do this by defining a title property in the Card component:

Card:

<template>
  <div class="card">
    {{ title }}
  </div>
</template>

<script>
export default {
  props: ['title']
}
</script>

Leave a comment