Skip to content

Instantly share code, notes, and snippets.

View Flexicon's full-sized avatar
👻

Mike Repeć Flexicon

👻
View GitHub Profile
@Flexicon
Flexicon / pass-slots.md
Created April 28, 2020 11:23 — forked from loilo/pass-slots.md
Vue: Pass Slots through from Parent to Child Components

Vue: Pass Slots through from Parent to Child Components

The Situation

  • We've got some components A, B and C which provide different slots.
    const A = {
      template: `<div><slot name="a">Default A Content</slot></div>`
    }

const B = {