Nuxt/test/fixtures/basic/pages/users/_id.vue

13 lines
193 B
Vue
Raw Normal View History

2016-12-21 19:51:43 +00:00
<template>
<h1>User: {{ id }}</h1>
</template>
<script>
export default {
asyncData ({ params, payload }) {
if (payload) { return payload }
2016-12-21 19:51:43 +00:00
return { id: params.id }
}
}
</script>