3

I've built a dynamic set of form inputs using vue.js, where the form inputs are generated from an external list of inputs.

My problem is that I don't see how I can bind the input values back to the vue model, so that the vue instance can access / interact with the form values.

I've created a basic fiddle to give you the idea here: https://jsfiddle.net/gzprj5ef/

Is it possible to update the vue instance with the form values?

2 Answers 2

3

You have to remove double brackets when you are using v-model.

Here is the updated jsfiddle

Sign up to request clarification or add additional context in comments.

Comments

1

You can use v-model="input.value", and you can take a result in variable 'inputs'.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.