When does re-rendering happen exactly in vue?
I understand that Vue will redraw when the data changes. But when I change the data in the hook function, for example mounted
, the page doesn't re-render. Below is a portion of my code.
mounted: function () {
document.getElementById('lanchange').onclick = function (e) {
this.loginPopActive = false
this.lanPopActive = false
console.log(this.lanPopActive)
}
}
+3
source to share