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

13 lines
188 B
Vue
Raw Normal View History

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