A
A
Andrej Sharapov2019-06-21 14:01:41
Vue.js
Andrej Sharapov, 2019-06-21 14:01:41

Send data to a form?

Guys, hello everyone!
I am learning to work in vue.js. Can you tell me why the data is not displayed in the form? Where did you go wrong?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
0
0xD34F, 2019-06-21
@Madeas

Where did you go wrong?

Yes, everywhere.
There can only be one root element - so v-foryou can't use it there. A form inside a c element v-for- why do you need multiple forms? Manually created markup for form elements - although here it should be generated using v-foran array based on data.
https://jsfiddle.net/Lp1b7do9/

N
nvdfxx, 2019-06-21
@nvdfxx

new Vue, after all, you create an instance of the class, + you can’t wrap the root element in a cycle, + you generate a new form at each iteration of the cycle, the whole template is written incorrectly

V
Vladimir Malkov, 2019-06-21
@MalkovVladimir73

Greetings!

  • new Vue
  • Don't use v-for on the root div (div with id=contact)
  • Check all :key="id". find the error)
  • Didn't find what you were looking for?

    Ask your question

    Ask a Question

    731 491 924 answers to any question