o-louis / booklist-with-vuex

A simple booklist to get an example of a project with vuex

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BookList with vuex

Memo

import Vuex from "vuex";

Vue.use(Vuex);

export default new Vuex.Store({
  state: {},
  mutations: {},
  actions: {},
  getters: {},
  modules: {}
});

Mutations: To call a mutation you can either do this.$store.commit(MUTATION, params) or import and write ...mapGetters to computed property

Actions: To call an action you can either do this.$store.dispatch(ACTION, params) or import and write ...mapActions to methods property

About

A simple booklist to get an example of a project with vuex


Languages

Language:Vue 48.0%Language:JavaScript 43.7%Language:HTML 7.2%Language:CSS 1.2%