[Vuejs]-How to set vue data to the value of a form?

2👍

The reason it didn’t work was because {{ form.content.data }} appears in the template as raw text.

Thus it was trying to use something like: the brown fox jumped over the lazy dog

and this doesn’t compile to a javascript object. Adding quotes around the {{ form.content.data }} like '{{ form.content.data }}' fixed it.

Leave a comment