I wanted to hide the vue-youtube component by using a simple v-if. Unfortunately, I wasn't able to recover the iFrame properly.
I tried to create a JSFiddle so you see what I mean, but because of the require call in your dist js file it doesn't work out. So here is the code I'm using:
Heyho!
I wanted to hide the vue-youtube component by using a simple
v-if
. Unfortunately, I wasn't able to recover the iFrame properly.I tried to create a JSFiddle so you see what I mean, but because of the
require
call in your dist js file it doesn't work out. So here is the code I'm using: