State management in general

State

Getter ⇒ getDoneTodo, getNotDoneTodo

Mutation ⇒ store.commit('SET_TODOLIST', todoList)

Action ⇒ store.dispatch('fetchTodoListFromDb')

https://github.com/pangaunn/vuex-example

npm install --save vuex