© Brett Nelson 2018
Brett NelsonGetting to Know Vue.jshttps://doi.org/10.1007/978-1-4842-3781-6_6

6. Bindings

Brett Nelson1 
(1)
Eagan, Minnesota, USA
 

One of the main reasons to use a framework like Vue is that it makes responding to user input easier. One of the places user input is common is in forms. We also like to update the look of this when users make an input/select an option, changing styles and classes to let the user know something happened.

In this chapter, we will learn about binding data to form input along with binding to inline styles and classes.

Forms

Getting user input out of a form and into a variable we can manage is one of the main advantages of using a framework like Vue. Vue provides us with the v-model directive to bind data ...

Get Getting to Know Vue.js: Learn to Build Single Page Applications in Vue from Scratch now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.