Answer the question
In order to leave comments, you need to log in
How to properly save a form in vue?
Got a project on vue. I'm not familiar with vue. It seems like a simple task, but Google did not give anything.
In general, tell me how to save the form correctly when submitting (for starters, I just want to state).
Conditionally there is a modal, it has a lot of inputs. At the bottom of the modal is the "Save" button.
I write the input values through: value, because through v-model it will save them immediately. And I don't need it.
So, how can I save all the form data in the required state after submitting the form? I will not prescribe for each input ref and assign values one by one in the submit function. How is it done correctly?
ps I submit through <form @submit.prevent="saveModal">
, if suddenly this is important
Answer the question
In order to leave comments, you need to log in
I write the input values through: value, because through v-model it will save them immediately.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question