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.
Advanced Vue 2 - Vuex & SSR > Lesson 20

Adding buttons to current-month component

We'll now add the increment and decrement buttons as well.

So coming up to our template, let's add a wrapping div here and move our, write the

wrong way; move that there and then I'm gonna add two buttons, the first one we'll just

put a minus sign in it and the second one we will put a plus sign it, and we're going

to listen to the click event on those so we use the the shorthand @ and we can go @click

and will trigger a method called dec and we'll


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