Example: The Employee Directory
Walk through a complete code example of state management in Vuex.
We'll cover the following...
We'll cover the following...
Let’s add Vuex functionality to our employee directory.
We’ll start with generating a Vue project from scratch with the CLI and opt to manually select features. In addition to the defaults, we want to check the Vue Router and Vuex options.
Index page
Let’s add some markup and CSS to the index page (public/index.html) for the demo.
CDN link and additional styling
Let’s alter the /src/App.vue file to add a CDN link to the Semantic UI library with some additional styling tweaks.
We’ll ...