mirror of
https://github.com/VueTubeApp/VueTube
synced 2024-11-08 04:25:07 +00:00
31 lines
426 B
Vue
31 lines
426 B
Vue
<template>
|
|
<div>
|
|
<v-text-field
|
|
label="Search"
|
|
outlined
|
|
v-model="text"
|
|
@input="textChanged"
|
|
/>
|
|
{{ response }}
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
text: null,
|
|
response: null,
|
|
}
|
|
},
|
|
|
|
methods: {
|
|
textChanged() {
|
|
this.$youtube.autoComplete(this.text, (res) => {
|
|
this.response = res.data;
|
|
});
|
|
}
|
|
}
|
|
|
|
}
|
|
</script>
|