I have this data: Sample = [1,2,3]
one input, and and two button
The button are next data and previous
So the idea is to two way bind the input to Sample[var], where var is changeable via the button,
I've been trying to use compute setter or bind the array with changeable var in the data, with no success, what approach should I take?
here's the code:
<ckeditor v-model="thedata"></ckeditor>
data() {
return {
Sample: [1,2,3],
thedata: Sample[var],
var : 0
}
}