© Adam Freeman 2018
Adam FreemanPro Vue.js 2https://doi.org/10.1007/978-1-4842-3805-9_20

20. Using a Data Store

Adam Freeman1 
(1)
London, UK
 
In this chapter, I show you how to use the Vuex package to create a data store, which provides an alternative approach to sharing data in an application and arranging coordination between components. Table 20-1 puts the Vuex data store in context.
Table 20-1

Putting the Vuex Data Store in Context

Question

Answer

What is it?

A data store is a common repository for an application state, managed by the Vuex package, which is an official part of the Vue.js project.

Why is it useful?

A data store can simplify the management of data by making it readily available through an application.

How is it used?

A data store is created ...

Get Pro Vue.js 2 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.