Scoped slot help

I am not sure if this is possible or simply doing it wrong.

I want to define the variable in a slot in the parent but have it filled with the data from the child.

Example:

<selectable-mgt name="travel">
   <h6>
      <v-icon>airplanemode_active</v-icon>Count = {{ count }}
   </h6>
</selectable-mgt>

Where count property is actually from within selectable-mgt, its not passed. Its more complex than simply count, just used simple example for readability.

Hi

Here you can read about this: https://vuejs.org/v2/guide/components-slots.html#Scoped-Slots

Read if over a few more times and got it finally.

1 Like