[Vuejs]-Use v-model for generated input tag

0👍

Vue template ≠ HTML; you’re using v-html with a Vue template string which will not work.

If you need to dynamically generate elements in your component’s template then you need to do this by building a model of the UI you want to display in code and then rendering it out in the template with v-for, <component>, etc; or for more complex UI you might need to write the render function by hand.

Leave a comment