Is any way to pass a template to extended component? Example, that illustrates the problem:
There is a component named Slide
with a template like so:
If you are open to change your approach a little bit, a
instead of
:
https://jsfiddle.net/jonataswalker/z5Lgbjv8/
const Parent = {
template: `
parent content
`,
data() {
return { view: '' }
}
}
const Other = {
template: `
from Other
`
}
const Slide = Vue.extend(Parent)
// how to pass template to the Parent`s slot?
new Slide({
data: { view: Other }
}).$mount('#container')