Building Forms with Vue.js
Copyright 2019 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing or its dealers and distributors, will be held liable for any damages caused or alleged to have been caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
Commissioning Editor: Pavan Ramchandani
Acquisition Editor: Larissa Pinto
Content Development Editor: Aamir Ahmed
Senior Editor: Mohammed Yusuf Imaratwale
Technical Editor: Jane Dsouza
Copy Editor: Safis Editing
Project Coordinator: Manthan Patel
Proofreader: Safis Editing
Indexer: Tejal Daruwale Soni
Production Designer: Joshua Misquitta
First published: October 2019
Production reference: 1231019
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham
B3 2PB, UK.
ISBN 978-1-83921-333-5
www.packt.com
To my friends Natalia, Damian, and Chris, without whom I wouldn't have got this far.
- Marina Mosti
Packt.com
Subscribe to our online digital library for full access to over 7,000 books and videos, as well as industry leading tools to help you plan your personal development and advance your career. For more information, please visit our website.
Why subscribe?
Spend less time learning and more time coding with practical eBooks and Videos from over 4,000 industry professionals
Improve your learning with Skill Plans built especially for you
Get a free eBook or video every month
Fully searchable for easy access to vital information
Copy and paste, print, and bookmark content
Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.packt.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at customercare@packtpub.com for more details.
At www.packt.com , you can also read a collection of free technical articles, sign up for a range of free newsletters, and receive exclusive discounts and offers on Packt books and eBooks.
Foreword
I first became aware of Marina through her educational work, writing fun and accessible articles about Vue ranging from the very basics to advanced concepts such as object constancy and configuring Vue CLI. I later learned about her work on the Vuelidate team, building some of the most robust form libraries in the Vue ecosystem. Now I get to work with her directly as one of the first people I go to for help breaking down a difficult new concept for the Vue ecosystem.
I'm the one who recommended she write this book, as it's long overdue and she's the perfect person for the job. Building and maintaining complex forms in Vue is among the topics I get asked about the most, but comprehensive resources are still rare. Marina uses her expertise in this domain to provide the most approachable and complete introduction to the essential tools and strategies I've yet seen. It's a must-read for anyone who uses Vue, builds forms, and still has questions.
Chris Fritz, October 2019
Vue Team
Contributors
About the author
Marina Mosti is a full-stack web developer with over 13 years of experience in the field. She enjoys mentoring other women on JavaScript and her favorite framework, Vue, as well as writing articles and tutorials for the community.
She currently holds a position as Lead FE Developer at VoiceThread, and is the author of the FormVueLatte library as well as a member of the Vuelidate team. In her spare time, she enjoys playing bass, drums, and videogames.
About the reviewers
Natalia Tepluhina is a Vue.js core team member and a Senior Frontend Engineer at GitLab. She is a conference speaker and author of articles on different topics related to Vue.js. Thanks to these activities, Natalia has got the title of Google Developer Expert in Web Technologies.
Chris Fritz is an educator/developer hybrid and consultant who draws on his upbringing as a cultural mutt to help Vue devs around the world be happier in their work. He's most well known for his work on the Vue docs and Vue Enterprise Boilerplate, as well as speaking, leading workshops, and cohosting a weekly podcast called Views on Vue. When he's not working, he's probably reading speculative fiction, working out with lightsabers in virtual reality, frowning at puzzle games while he insists he's having funor even outside enjoying a hike with friends.
Packt is searching for authors like you
If you're interested in becoming an author for Packt, please visit authors.packtpub.com and apply today. We have worked with thousands of developers and tech professionals, just like you, to help them share their insight with the global tech community. You can make a general application, apply for a specific hot topic that we are recruiting an author for, or submit your own idea.
Preface
Vue.js is one of the world's leading and fastest growing frameworks for frontend development. Its gentle learning curve and vibrant and helpful community have made it an easy choice for many new developers looking to harness the power of frontend frameworks. Additionally, its flexibility and power have made it an easy choice for advanced developers and companies to use it as their main tool for powerful, dynamic, and lean applications and websites.
In Building Forms with Vue.js, we will explore a specific part of frontend developmentforms. We will journey together, from creating the most basic forms all the way through to understanding how a fully dynamic, schema-driven form works.
Who this book is for
Building Forms with Vue.js is aimed at frontend developers who have a basic understanding of the Vue.js framework and who want to understand how to better create powerful and reusable forms.
What this book covers