Answer the question
In order to leave comments, you need to log in
How to make objects in an array reactive?
Hello everyone, there is an array with objects, how to make objects inside the array reactive?
The objects are then printed out to a table and some properties are bound to the inputs via v-model.
After changing the input, you need to change the object in the array. Thanks
Answer the question
In order to leave comments, you need to log in
If you use the Composition API, then you simply make the array itself reactive
const arr = ref([]);
and the array elements will become reactive
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question