Building Forms with Vue.js by Marina Mosti

Building Forms with Vue.js by Marina Mosti

Author:Marina Mosti [Marina Mosti]
Language: eng
Format: epub
Publisher: Packt Publishing
Published: 2019-10-23T16:00:00+00:00


Technical requirements

The code for this chapter can be found in the following GitHub repository:

https://github.com/PacktPublishing/Building-Forms-with-Vue.js/tree/master/Chapter05.

Check out the following video to see the code in action:

http://bit.ly/2VJIL8E

Installing dependencies

Let's start by installing Vuelidate in our project as a dependency, and then we are going to use it for validation. Follow these steps:

Open up the Terminal and execute the following command:

> npm install vuelidate

Once the library has been installed, we have to import it into main.js and use it as a plugin, so that it is globally available to all our components.

Add the following code to main.js, after the code that imports Vue and App:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.