why it doesn't work.
And it shows the Error
invalid left-hand side in assignment expression
VueJs
for (let i = 1; i <= this.properties.length; i++) {
this.product.properties + `.property${i}` = '';
}
data
data () {
return {
product: {
properties:{}
}
}
}
+) before the=, to access a property an object dynamically you should always writemyObject[dynamicKeyString]