mirror of
https://github.com/nuxt/nuxt.git
synced 2024-12-12 07:17:13 +00:00
e7cc2757c3
Co-authored-by: Alexander Lichter <manniL@gmx.net>
25 lines
297 B
Vue
25 lines
297 B
Vue
<template>
|
|
<div>
|
|
<h2>Child content</h2>
|
|
ID:{{ id }}
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: 'Child',
|
|
validate ({ params }) {
|
|
return !isNaN(+params.id)
|
|
},
|
|
computed: {
|
|
id () {
|
|
return this.$route.params.id
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style scoped>
|
|
|
|
</style>
|