Answer the question
In order to leave comments, you need to log in
Vue-typescript-component not working reactivity?
Why doesn't the template change when the method is used?
<template>
{{count}}
</template>
export default{
data():Object{
return {
count: 0
}
},
methods: {
plus():void{
this.count++
}
}
}
export default class Aaa extends Vue{
count :number= 0
plus():void{
this.count++
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question