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 30

Replacing dummy items

Regarding the response object created by Vue Resource, the body property contains the data we want to work with now.

We can see that these are an array of product objects, so let's get those into our product array.

The first thing we'll do is delete the dummy items, as we won't need those anymore.

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

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