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
},
Click to load comments...