0
0
Fork 0
mirror of https://github.com/VueTubeApp/VueTube synced 2024-11-08 04:25:07 +00:00
VueTube/NUXT/components/searchOverlay.vue

32 lines
426 B
Vue
Raw Normal View History

<template>
<div>
<v-text-field
label="Search"
outlined
2022-02-25 18:54:15 +00:00
v-model="text"
@input="textChanged"
/>
2022-02-25 18:54:15 +00:00
{{ response }}
</div>
</template>
2022-02-25 18:54:15 +00:00
<script>
export default {
data() {
return {
text: null,
response: null,
}
},
methods: {
textChanged() {
this.$youtube.autoComplete(this.text, (res) => {
this.response = res.data;
2022-02-25 18:54:15 +00:00
});
}
}
}
</script>