anteriovieira / vue-youtube

A simple component for a powerful API. vue-youtube provides a simple layer for you to use your imagination while over the YouTube IFrame Player API.
MIT License
340 stars 56 forks source link

Use on CodePen? #23

Open cfjedimaster opened 5 years ago

cfjedimaster commented 5 years ago

I'm 90% sure this is my fault and not yours. ;) I'm trying to use this in a CodePen demo. In my settings I've added https://raw.githubusercontent.com/anteriovieira/vue-youtube/master/dist/vue-youtube.js as a dependency. But any use of VueYoutube returns an error because it isn't defined. According to CodePen, any external JS libraries are loaded before your code is executed so I'm not quite sure what's wrong. Any ideas?

TitanFighter commented 5 years ago

How about codesandbox? Here you can install npm packages directly. Demo.

cfjedimaster commented 5 years ago

I knew it worked there as the demo was there. :) At the end of the day I don't expect you to support CodePen, I just thought maybe I was making a dumb/easy mistake somewhere. ;)