How do I get these 2 components to work together?
Vue.component('parent', { template: ''+ '<slot name="foo"></slot>'+ '' }); Vue.component('child', { template: ''+ '<div slot="foo">bar</div>'+ '' }); I thought I could do something like this but it didn't appear to work
Vue.component('parent', { components: [ 'child' ], template: ''+ '<slot name="foo"></slot>'+ '' }); Here is a JS Fiddle https://jsfiddle.net/3fjmLL52/