[Vuejs]-How to v-bind index from v-for while concatenate with data?

2👍

I think this is because you need to use array instead of dot syntax to access the values:

gs-input(
  label="From",
  v-bind:prop1="values['key' + index + 'vals']" // Does work
  v-bind:prop2="values[`key${index}vals`]"  // Does work
)
👤dhulme

Leave a comment