Learn Vue JS course Learn Javascript and Vue JS Learn VueJS course Learn VueJS Tutorial

The Vue.js Master Class

Get access to this course, 15 others, and future Vue.js courses!

Start Learning

Already got an account? Log in

Actions and Mutations

In this Vue.js tutorial, we’ll refactor the addPost method into actions and mutations.

Remember, that you should never alter the state outside a mutation.