I am workinf with Vue.js. I call a method in mounted. But i see this error in console;
Uncaught (in promise) TypeError: _this.deneme is not a function
My code is here:
async mounted() {
await this.deneme()
}),
methotds: {
deneme() {
console.log("it's working")
}
}
PS: I tried without async/await. But still not working.
You have a typo and a closing ) wrong
<script>
export default {
async mounted() {
await this.deneme()
},
methods: {
deneme() {
console.log("it's working")
}
}
}
</script>