mirror of
https://github.com/nuxt/nuxt.git
synced 2024-12-12 07:17:13 +00:00
b4d81dc584
* lint: require await in async function * lint: replace "error" with 2 in config
14 lines
210 B
Vue
14 lines
210 B
Vue
<template>
|
|
<p>{{ name }}</p>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
asyncData(context, callback) {
|
|
setTimeout(function () {
|
|
callback(null, { name: 'Callback Nuxt.js' })
|
|
}, 10)
|
|
}
|
|
}
|
|
</script>
|