Course lesson
Create a Two Way Binding to Update Data Throughout an App with Vue v-model
We'll see how we can define two-way binding using the v-model directive. This allows us to update data in our component and have it change the data stored in the application. This is particularly useful in forms within our application.
- Duration
- 2 min
- Access
- Pro
- Transcript
- Available
We'll see how we can define two-way binding using the v-model directive. This allows us to update data in our component and have it change the data stored in the application. This is particularly useful in forms within our application.
We'll see a form in action by creating a message data prop and binding the input field to that data prop and watch the data get updated. If this prop is updated anywhere in the application it will affect the input that we defined.