0
what does your data look like? I see three v-for loops on addForms, students, and studentAge. It’s not apparent how these relate. <option v-for="student in studentAge"
particularly doesn’t make sense to me. Also, I don’t think it makes sense to have a v-model inside a v-for. I could be wrong. To me though a v-model is for one piece of data. If you’re doing it inside a for loop then you’re v-modeling a bunch of values to a specific value, OR you’d need to be doing something like v-model="someArray[index]"
but that seems hard to read and reason about. Here’s my attempt at recreating your example in a codepen. If you update it with your data models and explain how things should work maybe that would help?
- [Vuejs]-How to listen to server(express) sent event from client(vue) instantly
- [Vuejs]-Vue-test-utils problem with native node esm: TypeError: mount is not a function
Source:stackexchange.com