3👍
You are using index
twice, both in your inner and outer loop. Try using e.g. propIndex
and typeIndex
instead.
<div v-for="(property, propIndex) in properties" :key="propIndex">
{{ property.property_name }}
<div v-for="(house_type, typeIndex) in property.house_type.data" :key="typeIndex">
{{ house_type.type }}<br>
<input type="text" v-model="form[propIndex].rent">Rent<br>
</div>
<br>
</div>
Source:stackexchange.com