I have this code here:
<template>
<div>
<button @click="changeData(text)">click me !</button>
<p>{{ text }}</p>
</div>
</template>
<script>
export default {
data () {
return {
text: 'lorem'
}
},
methods: {
changeData(param){
this.param = 'lorem 1'
}
}
}
</script>
I wanna click button then change "text" variable by param in function changeData