Nuxt/test/fixtures/basic/pages/users/_id.vue
2017-05-30 12:00:31 +02:00

13 lines
189 B
Vue

<template>
<h1>User: {{ id }}</h1>
</template>
<script>
export default {
asyncData ({ params, payload }) {
if (payload) return payload
return { id: params.id }
}
}
</script>