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

17 lines
200 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 {
2017-10-31 13:26:19 +00:00
data() {
2016-11-07 01:34:58 +00:00
return { answer: null }
},
2017-10-31 13:26:19 +00:00
created() {
2016-11-07 01:34:58 +00:00
this.answer = 42
}
}
</script>