{{ question }}
<v-btn @click="get_new_value">click me</v-btn>
<script>
export default {
name: 'Questions',
props: ['name'],
data() {
return {
question: ''
}
},
computed: {
task: {
get: function() {
return this.question = 'oldValue'
},
set: function() {
return this.question = newValue
}
}
},
methods: {
get_new_value() {
this.task = 'something new value'
},
}
</script>