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

Vuex for Everyone

🚧 NOTICE: You are watching a Vue.js 2 lesson

Vuex Actions

In this lesson, we’ll dive into what Vuex actions are, and how and where to define in our application.

We’ll point out a true benefit of using actions to fetch our products from the store compared to fetching products directly inside a component.

Since actions usually are asynchronous we’ve added a little bonus section with promises.

As always we’ll implement what we’ve learned and progressively build our shopping cart.

You can find the spinner image here.