Answer the question
In order to leave comments, you need to log in
When waiting for a response from an AXIOS server, replace an element with a loading animation in Vue.js?
I have an element ( button ), when clicked on which, through the @click attribute, it calls the "sendRequest" method, which in turn sends a request to the server through the axios library, and so, as with any call to the server through the axios library, while the response from the server is still being processed, to insert instead of an element (in this case, a button) - a loading animation (GIF picture with a loader)?
Answer the question
In order to leave comments, you need to log in
I know two ways:
loading = true
.loading = false
.Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question