Book description
Learn how to build amazing and complex reactive web applications easily with Vue.js
About This Book
- Learn how to propagate DOM changes across the website without writing extensive jQuery callbacks code.
- Learn how to achieve reactivity and easily compose views with Vue.js and understand what it does behind the scenes.
- Explore the core features of Vue.js with small examples, learn how to build dynamic content into preexisting web applications, and build Vue.js applications from scratch.
Who This Book Is For
This book is perfect for novice web developer seeking to learn new technologies or frameworks and also for webdev gurus eager to enrich their experience. Whatever your level of expertise, this book is a great introduction to the wonderful world of reactive web apps.
What You Will Learn
- Build a fully functioning reactive web application in Vue.js from scratch.
- The importance of the MVVM architecture and how Vue.js compares with other frameworks such as Angular.js and React.js.
- How to bring reactivity to an existing static application using Vue.js.
- How to use plugins to enrich your applications.
- How to develop customized plugins to meet your needs.
- How to use Vuex to manage global application’s state.
In Detail
Vue.js is one of the latest new frameworks to have piqued the interest of web developers due to its reactivity, reusable components, and ease of use.
This book shows developers how to leverage its features to build high-performing, reactive web interfaces with Vue.js. From the initial structuring to full deployment, this book provides step-by-step guidance to developing an interactive web interface from scratch with Vue.js.
You will start by building a simple application in Vue.js which will let you observe its features in action. Delving into more complex concepts, you will learn about reactive data binding, reusable components, plugins, filters, and state management with Vuex. This book will also teach you how to bring reactivity to an existing static application using Vue.js. By the time you finish this book you will have built, tested, and deployed a complete reactive application in Vue.js from scratch.
Style and approach
This book is a thorough, step-by-step guide showing readers how to build complete web apps with Vue.js. While teaching its intricacies, this book shows how to implement the MVVM architecture in the real world and build high-performing web interfaces.
Table of contents
-
Learning Vue.js 2
- Learning Vue.js 2
- Credits
- About the Author
- Acknowledgments
- About the Reviewer
- www.PacktPub.com
- Dedication
- Preface
-
1. Going Shopping with Vue.js
- Buzzwords
- Vue.js history
- The most important thing about Vue.js
-
Let's go shopping!
- Implementing a shopping list using jQuery
- Implementing a shopping list using Vue.js
- Analyzing data binding using developer tools
- Bringing user input to the data with two-way binding
- Rendering the list of items using the v-for directive
- Check and uncheck shopping list items
- Adding new shopping list items using the v-on directive
- Using Vue.js in an existing project
- Vue.js 2.0!
- Projects using Vue.js
- Book roadmap
- Let's manage time!
- Exercise
- Summary
- 2. Fundamentals – Installing and Using
-
3. Components – Understanding and Using
- Revisiting components
- Benefits of using components
- Rewriting the shopping list with simple components
- Exercise
- Single-file components
- Rewriting our shopping list application with single-file components
- Exercise
- Rewriting the Pomodoro application with single-file components
- Reactive binding of CSS transitions
- Summary
-
4. Reactivity – Binding Data to Your Application
- Revisiting data binding
- Interpolating data
- Using expressions and filters
- Revisiting and applying directives
- Kittens
- Summary
-
5. Vuex – Managing State in Your Application
- Parent-child components' communication, events, and brain teaser
- Why do we need a global state store?
- What is Vuex?
- How does the store work and what is so special about it?
- Greetings with store
- Installing and using the Vuex store in our applications
- Using the Vuex store in the shopping list application
- Using Vuex store in the Pomodoro application
- Summary
- 6. Plugins – Building Your House with Your Own Bricks
- 7. Testing – Time to Test What We Have Done So Far!
- 8. Deploying – Time to Go Live!
- 9. What Is Next?
- A. Solutions to Exercises
Product information
- Title: Learning Vue.js 2
- Author(s):
- Release date: December 2016
- Publisher(s): Packt Publishing
- ISBN: 9781786469946
You might also like
book
Pro Vue.js 2
Explore Vue.js to take advantage of the capabilities of modern browsers and devices using the fastest-growing …
book
Vue.js 2 Cookbook
101 hands-on recipes that teach you how to build professional, structured web apps with Vue.js About …
book
Vue.js 2 Web Development Projects
A project-based, practical guide to get hands-on into Vue.js 2.5 development by building beautiful, functional and …
book
Vue.js 2 and Bootstrap 4 Web Development
Learn how to combine Bootstrap with Vue.js to build responsive web applications. About This Book Build …