Skip to content

Instantly share code, notes, and snippets.

Avatar
古見さんは、コミュ症です。

filipemeneses

古見さんは、コミュ症です。
View GitHub Profile
@loilo
loilo / pass-slots.md
Last active Oct 17, 2020
Vue: Pass Slots through from Parent to Child Components
View pass-slots.md

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 = {
You can’t perform that action at this time.