Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
DrooLTU opened this issue Jun 21, 2019 · 1 comment
Open

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

DrooLTU opened this issue Jun 21, 2019 · 1 comment

Comments

@DrooLTU
Copy link

DrooLTU commented Jun 21, 2019

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:
<vue-glide> <vue-glide-slide v-for="char in chars" :key="char.id"> <component :is="child_component" v-bind:key="char.id" v-bind:char="char" v-bind:activeChar="activeChar" ></component> </vue-glide-slide> </vue-glide>

@josegus
Copy link

josegus commented Sep 14, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants