Basic question but still I cannot figure out how to add an extra class based on @click. I still get error: Cannot read property 'add' of undefined"
methods: {
hideItems() {
document.getElementsByClassName('sold').classList.add('hide')
}
}