0.0.10 • Published 6 years ago

vue2-youtube-player v0.0.10

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

Vue2YoutubePlayer

Vue2YoutubePlayer Component for Vue 2.x

Install

    npm install vue2-youtube-player --save

Demo

For demo, please see here

Usage

1. Import the component

import Vue2YoutubePlayer from 'vue2-youtube-player';

2.1 Use it globally

Vue.use(Vue2YoutubePlayer);

2.2 Or use it locally

components: {
    'vue2-youtube-player': Vue2YoutubePlayer
},

3. Update your app or template:

<div>
...
<vue2-youtube-player url="https://www.youtube.com/watch?v=Mn0iml0z7GQ"></vue2-youtube-player>
...
</div>

Properties

There are no properties.

Example

Please see App.vue for example use.

Contributing

Contributions are welcome

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build