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.
Build Your First Vue.js App > Lesson 19

Cart items quantity logic

In the last video, we added a qty property to our cart items. In this video, we'll create the logic for setting the quantity.

Incrementing quantity

The idea of the qty property is that rather than re-adding a product to the cart each time the addToCart method is called on the same product, we instead just increment the qty value.


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