I am using vuetify and I am trying to call a method when v-btn component clicked. But it seems it is not working.
it is my code:
<v-btn @click="bookmarkSave()">
<v-icon v-if="!isBookmarked">bookmark_border</v-icon>
<v-icon v-else>bookmark</v-icon>
</v-btn>
and I declared a method in the component (in methods section) like that:
bookmarkSave : async function () {
const response = await axios.get('api/bookmark-kaydet?voice_id=' + this.audio.id);
console.log(response);
}
but I couldn't call bookmarkSave() method on click event. Also, I tried .native option, too. Are there any idea what is wrong with my code? or who want to show me use click event on v-btn component
When I click button, there are no console eror or network log. I can see only some output on vue tool. I added an image about that.
