2022-10-08 14:18:57 +00:00
|
|
|
<template>
|
|
|
|
<div :id="`page-${route.params.foo}`">
|
|
|
|
[keyed-child-parent/{{ route.params.foo }}]
|
|
|
|
<NuxtLink to="../keyed-child-parent/1">
|
|
|
|
To another
|
|
|
|
</NuxtLink>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script setup>
|
2023-09-19 21:26:15 +00:00
|
|
|
if (import.meta.client) {
|
|
|
|
console.log('Running Child Setup')
|
|
|
|
}
|
2022-10-08 14:18:57 +00:00
|
|
|
const route = useRoute()
|
|
|
|
|
|
|
|
definePageMeta({
|
2024-04-05 18:08:32 +00:00
|
|
|
key: r => 'keyed-' + r.params.foo,
|
2022-10-08 14:18:57 +00:00
|
|
|
})
|
|
|
|
</script>
|