Thanks! This is exactly what I am looking for. Where do you call the mapFields function. Could you please show an example?
My fault, I will edit the post to answer you, sorry for this and thanks for asking.
I think if you do something like
...
Then, in your methods you define the 'handleSubmi function as follows:
methods:{ handleSubmit(e){ e.preventDefault(); mapFields(e) //... }
I think something like the above would do... what do you think?
I would use it in the computed property, so i could change the state as i input .
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thanks! This is exactly what I am looking for.
Where do you call the mapFields function. Could you please show an example?
My fault, I will edit the post to answer you, sorry for this and thanks for asking.
I think if you do something like
...
Then, in your methods you define the 'handleSubmi function as follows:
methods:{
handleSubmit(e){
e.preventDefault();
mapFields(e)
//...
}
I think something like the above would do... what do you think?
I would use it in the computed property, so i could change the state as i input .