Abstract
In this chapter, I describe v-model, which is the built-in directive used for HTML form elements. The v-model directive creates a two-way data binding between a form element and a data value and ensures that the application remains consistent, regardless of how the data is changed. I also show you how to combine the v-model directive with some of the built-in directives described in earlier chapters to validate the data entered into a form by the user. Table 15-1 puts the v-model directive in context.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2018 Adam Freeman
About this chapter
Cite this chapter
Freeman, A. (2018). Working with Form Elements. In: Pro Vue.js 2. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-3805-9_15
Download citation
DOI: https://doi.org/10.1007/978-1-4842-3805-9_15
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-3804-2
Online ISBN: 978-1-4842-3805-9
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)