Title Page
Vue.js 2 Cookbook
Build modern, interactive web applications with Vue.js
Andrea Passaglia
BIRMINGHAM - MUMBAI
Vue.js 2 Cookbook
Copyright 2017 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, and its dealers and distributors will be held liable for any damages caused or alleged to be 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.
First published: April 2017
Production reference: 1200417
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham
B3 2PB, UK.
ISBN 978-1-78646-809-3
www.packtpub.com
Credits
Author
Andrea Passaglia | Copy Editor Shaila Kusanale |
Reviewer
Bogdan-Alin Blc
| Project Coordinator
Ritika Manoj |
Commissioning Editor
Ashwin Nair | Proofreader
Safis Editing |
Acquisition Editor
Siddharth Mandal | Indexer
Aishwarya Gangawane |
Content Development Editors
Narendrakumar Tripathi
Mohammed Yusuf Imaratwale | Graphics
Jason Monteiro |
Technical Editor
Sushant S Nadkar | Production Coordinator
Aparna Bhagat |
About the Author
Andrea Passaglia was born in Genoa, in northern Italy. Interested about technology since his parents gave him a toy computer when he was a boy, he started studying web technologies at an early age. After obtaining his master's degree in computer engineering he worked on the design and implementation of web interfaces for companies of various sizes and in different industries (healthcare, fashion, tourism, and transport).
In 2016 he moves in the silicon valley of Europe to tackle new problems in the banking industry at the Edgeverve Dublin Research and Development Labs.
A backend technologist by trade, Vue.js is his first tool to bring to life his creations when it comes to the frontend.
Andrea is married to a lovely Russian girl from Siberia and they often cook together mixing culinary traditions.
I would like to thank Packt for giving me the opportunity to write this book--Narendra Tripathi, Smeet Thakkar, Siddharth Mandal, and the whole team for being so professional and supporting. A big thank you to Bogdan Blc for his attention to detail, and all the people that helped me with reviewing the book; I'm talking to Alesya Kholodova, Eamon McNamee, and Yomi Eluande. Thank you guys for your practical suggestions and useful additions to the book.
Support from my colleagues at the lab was invaluable, to you guys goes my gratitude for always asking "How's the book going?" It really meant a lot to me.
Thanks to my wife for constantly pushing me to write every day and everywhere; thanks to my family for your love and support.
About the Reviewer
Bogdan is a team lead with a passion for frontend technologies. He has worked on JavaScript for the past 8 years, from the emergence of jQuery and Ajax to modern full-fledged MVC frameworks. When he is not fiddling with some new JavaScript challenge, he spends his time playing sports and games with friends, and watching sports and movies.
Nowadays he channels most of his efforts into making WE3 Interactive one of the most successful and creative startups in Cluj.
He is so passionate about Vue.js that he has already helped publish another awesome book written by Olga Filipova: Learning Vue.js.
www.PacktPub.com
For support files and downloads related to your book, please visit www.PacktPub.com .
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.PacktPub.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at service@packtpub.com for more details.
At www.PacktPub.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.
https://www.packtpub.com/mapt
Get the most in-demand software skills with Mapt. Mapt gives you full access to all Packt books and video courses, as well as industry-leading tools to help you plan your personal development and advance your career.
Why subscribe?
- Fully searchable across every book published by Packt
- Copy and paste, print, and bookmark content
- On demand and accessible via a web browser
Customer Feedback
Thanks for purchasing this Packt book. At Packt, quality is at the heart of our editorial process. To help us improve, please leave us an honest review on this book's Amazon page at https://www.amazon.com/dp/1786468093.
If you'd like to join our team of regular reviewers, you can e-mail us at customerreviews@packtpub.com. We award our regular reviewers with free eBooks and videos in exchange for their valuable feedback. Help us be relentless in improving our products!
Dedication
Con amore infinito, tuo figlio Andrea
Table of Contents
Preface
Vue.js 2 is a minimal but powerful framework. It will empower you to quickly prototype small applications, and it won't get in the way when structuring large frontend systems. This is a cookbook and every paragraph is a recipe; just as with a regular cookbook, you can quickly skip to the recipe that interests you or read it cover to cover to become a great chef.
All the recipes (except a handful) represent working Vue apps, so at the end of the exercise you are never left empty handed. When I wrote them, I tried to give meaningful examples and sprinkle some fun where possible. All the recipes are slightly different when it comes to doing the same thing, so that you will learn something new even when implementing very similar recipes.
This book took about 6 months to write, and even in this short amount of time I had to go back and update pictures and the API that changed, as well as add new concepts. Still, many recipes are imbued with the everlasting concepts of reusability and good engineering, so I like to think that some parts of this will remain with you, the reader, as useful techniques to reuse in your apps.