i have object with key value pair and I am using for loop on it.
<CCol
sm="6"
v-for="(
my_value, my_key
) in my_obj"
:key="my_key"
>
<CInput
:label="my_key"
type="text"
:placeholder="my_value" // I can use my_value as the placeholder
:v-model="my_value" // but if I use my_value in v-model it gives an error
/>
</CCol>
I am trying to display key as a label and value as the value of textbox and user can be able to update the value.
when I use value in v-model it gives an error "v-model' directives cannot update the iteration variable 'my_value' itself." but I can use it for the display purpose only like placeholder.
I need the value updatable.
Any suggestions are welcome. Thanks in advance.