# Vue.js
## Minimal component sample
```js
'use strict'
Vue.component('flowplayer', {
props: ['token', 'src', 'poster', 'ratio', 'autoplay'],
template: '
',
mounted: function () {
this.player = flowplayer(this.$el, this.$props)
},
destroyed: function() {
this.player.destroy()
}
})
```
## Init
```js
var app = new Vue({ el: "#player" })
```
## Embed
```html
```