antonreshetov / vue-glide

A slider and carousel as vue component on top of the Glide.js
https://antonreshetov.github.io/vue-glide/
MIT License
269 stars 39 forks source link

v-model/v-for does not work with dynamic components #34

Open DrooLTU opened 5 years ago

DrooLTU commented 5 years ago

Hi, I want to use this slider where the slide content is another component. I tried passing it this way and it does render what's inside the child component, but the slider doesn't work and throws TypeError: "this.$slots.default is undefined" Here's my code: `

`

josegus commented 4 years ago

You could create a DynamicComponent, this dynamic component will be in charge of determines which component should be rendered