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.
Vue Foundations > Lesson 21

Adding quantity controls to template

One of the cool features that the completed version of the store has is the ability to increment and decrement the quantity of an item directly from the shopping cart. [demonstrate this].

So let's add this feature to our project now.

Template

In our template, let's add two buttons into the cart item section. The first will have text content of a + and the second will have a -. For styling purposes, we'll give each a class btn.

index.html


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