I'm having an issue where after 5 seconds, the text isn't updating. Can someone please help me figure out what I need to make it change on the browser after 5 seconds?
<template>
<h1>{{ test }}</h1>
</template>
<script>
export default {
data() {
return {
test: 'Foo'
}
},
mounted() {
setTimeout(function(){
this.test = 'Bar'
}, 3000);
}
}
</script>