The video for this lesson is currently being updated, please read the transcript instead.

Rendering the list of products

One thing that every e-commerce store needs to have is products. Let's start adding some to our app.

We're going to add another property to our Vue data properties object called products. We'll assign this one an array. This array will hold our store's products.

new Vue({
  el: "#app",
  data: {
    total: 0,
    products: []
  },
  methods: { ... }
});

To view the complete lesson you'll need to login or join this course.


Click to load comments...