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 15

Adding products to the cart

Previously, we created this addToCart method. Currently it just console logs a message, so in this video, we'll give it some proper functionality.

Updating total

The addToCart method will need to do two things: firstly, it'll need to update the total value, and secondly, it'll need to push products to the cart array so they're ready to be displayed.


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