79498599

Date: 2025-03-10 16:40:08
Score: 1
Natty:
Report link

Did you add this when declaring your parent component? :

<script>  
export default {  
  props: {  
    block: String,  
  }  
};  
</script>  

Then to use your parent component you add:

<template>
  <ParentComponentNameHere :block="'Example'">
    <template v-slot:default="{ block }">
      <p>Block: {{ block }}</p>
    </template>
  </ParentComponentNameHere>
</template>

Also notice, it is {{block}} not {block}

Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Did you add this
  • Low reputation (0.5):
Posted by: Hédi Ben Chiboub