I'm trying to watch HTML element in the followiing way:
computed: {
content(){
return document.querySelector(".tab-content")
}
},
watch: {
content(newVal) {
return newVal;
}
}
but when .tab-content
changes (it's innerHTML) , vue wont track/respond to that. any idea why?