VueTube/NUXT/pages/search.vue

22 lines
300 B
Vue

<template>
<div>
{{ searchData }}
</div>
</template>
<script>
export default {
data() {
return {
searchData: null
}
},
mounted() {
// video | playlist | channel | all
this.$youtube.search("test", "video", function(data) {
console.log(data)
})
}
}
</script>