Answer the question
In order to leave comments, you need to log in
How to show the loading icon in the body of the message being loaded in a loop, vue.js?
I output an array of messages
<ul v-for="item in messages">
...
{{ item.message }}
...
</ul>
{
"status": "",
"messages": [
{
"user": "Nikolay",
"message": "hello"
},
{
"user": "Petr",
"message": "hi"
}
]
}
Answer the question
In order to leave comments, you need to log in
I tried pushing data before and after the Ajax request, but I get two separate messages. it and is clear - 2 iterations.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question