October 2019
Intermediate to advanced
108 pages
2h 24m
English
Let's start by adding Vuex to our project. Follow these steps:
> npm install vuex
import Vuex from 'vuex';Vue.use(Vuex);const store = new Vuex.store({ // Our global store});
The store variable will hold all of our global states, including our actions and mutations as well. We'll discuss those in more detail soon. For store to be available to the whole app, we are missing one last step. We need to inject ...
Read now
Unlock full access