edit: I have used a number in this example which was a bad idea, in the real program I'm not using numbers but names (eg name_abba, name_jef, name_john)
I have 4 variables in my Vue component:
name_1
name_2
name_3
number
Printing the values is done as such:
{{ name_1 }}
How can I change the number in back of the variable, based on the value of the variable number?
Or is there a better way to make something like this work?
{{ name_{{number}} }}