The video for this lesson is currently being updated, please read the transcript instead.

Setting global day state

The next feature to add to our day selector is to make it so a user can select a day and have that day be set as the day value in the global state.

Click handler

To begin with, let's capture a user's click on any of the days in our day list. So we'll add a v-on and attach that to the click event on the li.

To view the complete lesson you'll need to login or join this course.


Click to load comments...