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

12 lines
148 B
Vue
Raw Normal View History

2016-12-21 19:51:43 +00:00
<template>
<h1>User: {{ id }}</h1>
</template>
<script>
export default {
2017-03-01 15:03:46 +00:00
asyncData ({ params }) {
2016-12-21 19:51:43 +00:00
return { id: params.id }
}
}
</script>