Plans from $25/month
This lesson is for members. Join us?
Subscribe now and get immediate access to this course, 30 more and all future Vue.js courses!
🚧 NOTICE: You are watching a Vue.js 2 lesson
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.