Skip to content

Instantly share code, notes, and snippets.

View professorhaseeb's full-sized avatar
🎯
Focused

Haseeb ur Rehman professorhaseeb

🎯
Focused
View GitHub Profile
@professorhaseeb
professorhaseeb / pass-slots.md
Created October 20, 2023 11:09 — 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 = {