M
M
mozzart_live2019-08-16 13:23:18
JavaScript
mozzart_live, 2019-08-16 13:23:18

How to update data in vue.js after ajax request?

Good afternoon, comrades!
On the back, I prepare a certain multidimensional array, turn it into a JS object and feed it to vue:

{
basket: {
{...}, {...}
},
recipient: {
name: '',
phone: '',
...
}
}

Next, I send all the data that is available via ajax to the back, in response to me, exactly the same array arrives in structure, but with changed data.
How competently, by means of vue, can she replace the data object while maintaining reactivity?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question