Nuxt/examples/named-views/pages/index/child/_id/index.vue
pooya parsa e7cc2757c3 refactor: update eslint-config to 1.x
Co-authored-by: Alexander Lichter <manniL@gmx.net>
2019-07-10 15:15:49 +04:30

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>