So I have a simple example with a button and some text but for some reason, it's not updating even though when I log the Vue object, data is clearly being updated.
<template>
<div>
<span>{{ showNav }}</span>
<span class="parallax__nav__trigger" v-on:click="toggleNav">
Menu
</span>
</div>
</template>
<script>
export default {
data: () => ({
showNav: false,
}),
methods: {
toggleNav: () => {
this.showNav = !this.showNav
console.log(this)
}
}
}
</script>
...