Courses
Vue Foundations Vue Fullstack Vue Enterprise
Articles
Latest Topics
More
Newsletter Sponsorship Discord About
The video for this lesson is currently being updated, please read the transcript instead.
Vue Foundations > 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...

Courses
  • Vue Foundations
  • Vue Fullstack
  • Vue Enterprise
Articles
  • Latest
  • Topics
Newsletter
  • Join
  • Sponsorship
More
  • Discord
  • Vue.js jobs
  • About

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

  • RSS
  • |
  • Atom