Articles
Latest
More
Newsletter Sponsorship Discord About
Sign up for our Newsletter
The video for this lesson is currently being updated, please read the transcript instead.
Build Your First Vue.js App > Lesson 10

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: { ... }
});

Back to course page

Click to load comments...

Articles
  • Latest
Newsletter
  • Join
  • Sponsorship
More
  • Discord
  • Vue.js jobs
  • About

Vue.js Developers © 2021. View our privacy policy .

  • RSS
  • |
  • Atom