Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Vue.js: Understanding its Tools and Ecosystem

You're reading from   Vue.js: Understanding its Tools and Ecosystem Take a crash course in the main concepts and syntax of the Vue.js library

Arrow left icon
Product type Paperback
Published in Nov 2019
Publisher
ISBN-13 9781800206625
Length 194 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Authors (2):
Arrow left icon
Dave Berning Dave Berning
Author Profile Icon Dave Berning
Dave Berning
Backstop Media LLC Backstop Media LLC
Author Profile Icon Backstop Media LLC
Backstop Media LLC
Arrow right icon
View More author details
Toc

Table of Contents (11) Chapters Close

Preface
1. Getting Started with Vue.js 2. Scaffolding Projects With Vue CLI 3 FREE CHAPTER 3. Navigation with Vue Router 4. State Management with Vuex 5. Debugging With Vue DevTools 6. Server-Side Rendering with Nuxt.js 7. Static Site Generation with VuePress 8. Mobile App Development with NativeScript for Vue.js 9. Greater Control of JavaScript and Type Casting with TypeScript 10. The Future of Vue.js and Adoption Rates

Chapter 4. State Management with Vuex

If you’ve read Chapter 2: Scaffolding Projects With Vue CLI 3, you’ll notice that “Vuex” was an option during your configuration setup. Vuex is a state management library created by the Core Team specifically for Vue.js. You can, of course, use other third party libraries like Redux for example. But the main advantages of using Vuex is 1) it’s simple and 2) it’s maintained by the Core Team.

State management can be puzzling at first, to say the least, but the best way to describe state is a single source of truth for your application’s data. The single source of truth is a large object, which stores any data that is global and that can change. Traditionally, it can be hard to traverse data across several “pages” in what is really one single index.html file. With the introduction of state management into your application, maintaining global data is a breeze.

Imagine that you want to store...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime