Nuxt/test/fixtures/basic/pages/stateful.vue

17 lines
206 B
Vue
Raw Normal View History

2016-11-07 01:34:58 +00:00
<template>
<div>
<p>The answer is {{ answer }}</p>
</div>
</template>
<script>
export default {
data () {
return { answer: null }
},
beforeMount () {
this.answer = 42
}
}
</script>