Vue 2 and initial input form values

Posted 2 years ago by vincentveyrat

According to the migration guide, it's not possible to pass data from input inline value to Vue instance anymore.

I tried

<input type="text" v-model="fill" value="my_value">

and got a inline value attributes will be ignored when using v-model warning.

Do you guys found a way to get the value from an edited form (or an unvalidated form) and bring them to Vue 2 ?

Please sign in or create an account to participate in this conversation.

Laracasts Mascot

Hi, Have We Met Yet?

Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.

Sign Me Up

Channels

Reply to

Use Markdown with GitHub-flavored code blocks.