Skip to content

Instantly share code, notes, and snippets.

Last active Jan 6, 2019
What would you like to do?
<h1>Cart Content</h1>
// Import Vuex Store into Component
import store from 'store.js';
export default {
computed: {
cartValue() {
// Return Vuex state from store
return store.state.cart;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment