Complete Vue.js 2 Web Development_ Practical guide to building end-to-end web development solutions with Vue.js 2

(singke) #1
Using Vue-Router Dynamic Routes to Load Data Chapter 9

Inspecting the output now reveals a collection grouped by handle, with variations and


images as objects:


With our products grouped more effectively, we can proceed with storing and recalling as


desired.


Storing the products


Once we have retrieved and formatted the CSV data, we can cache the contents in the Vuex


store. This will be done via a simple mutation that takes a payload and stores it without any


modifications.

Free download pdf