O'Reilly logo

Getting to Know Vue.js: Learn to Build Single Page Applications in Vue from Scratch by Brett Nelson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

© 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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required