NomNes / vue3-youtube

MIT License
33 stars 13 forks source link

Dynamic Url Youtube #9

Open superdiazzz opened 2 years ago

superdiazzz commented 2 years ago

I success to load static youtube video, but when i try to make dynamic list of url video, this widget not works. this how i done

<div v-for="data in documents" :key="data.id">
                <div class="section" :class="currentDoc.id === data.id ? '': 'is-hidden'">
                    <p class="title">{{data.subject}}</p>
                    <div v-if="data.description">
                        <YouTube 
                            :src="data.description"
                            @ready="onReady"
                            ref="youtube" :key="data.id"/>
                    </div>
                </div>
            </div>

data.description contains of youtube url, but the YouTube widget only displaying first video (never changes), although its value has been updated