Nuxt/test/fixtures/basic/pages/callback-async-data.vue
Alexander Lichter b4d81dc584 lint: require await in async function (#3676)
* lint: require await in async function

* lint: replace "error" with 2 in config
2018-08-10 08:41:23 +01:00

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>