The Vue.js 2 Master Class
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

Creating Posts using Vuex

In this Vue.js tutorial, we’ll refactor the addPost method so we can create forum posts with an action and mutations.

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