Skip to content

Instantly share code, notes, and snippets.

View alaa-aqeel's full-sized avatar
🐍
Only the snake in my heart

Alaa Aqeel alaa-aqeel

🐍
Only the snake in my heart
View GitHub Profile
@alaa-aqeel
alaa-aqeel / pass-slots.md
Created February 16, 2021 03:27 — 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 = {