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

Making check-filter toggleable

In the last video, we made it so our check-filter component inclued the genre title by setting up a prop.

Now we want to make it more like a standard HTML checkbox. So in this video, we'll make it toggleable with a click.

Capturing user click

We'll first create a data property checked on our check-filter component that will be false by default.

src/main.js

"check-filter": {
  props: {
    title: String
  },

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


Click to load comments...