mirror of
https://github.com/nuxt/nuxt.git
synced 2024-12-05 03:47:12 +00:00
23 lines
276 B
Vue
23 lines
276 B
Vue
|
<template>
|
||
|
<div>
|
||
|
fizz-{{ foo }}
|
||
|
<NuxtChild />
|
||
|
</div>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
export default {
|
||
|
data () {
|
||
|
return {
|
||
|
foo: 'bar'
|
||
|
}
|
||
|
},
|
||
|
async fetch () {
|
||
|
await new Promise((resolve) => {
|
||
|
this.foo = 'buzz'
|
||
|
resolve()
|
||
|
})
|
||
|
}
|
||
|
}
|
||
|
</script>
|