Nuxt/test/fixtures/spa/pages/mounted.vue

21 lines
237 B
Vue
Raw Normal View History

<template>
<h1>Test: {{ test.text }}</h1>
</template>
<script>
export default {
data () {
return {
test: {
text: null
}
}
},
mounted () {
this.test = {
text: 'updated'
}
}
}
</script>