Nuxt/test/fixtures/basic/pages/nested/[foo]/[bar].vue
Daniel Roe c1ddb359e3
chore: update to use @nuxt/eslint-config (#24209)
Co-authored-by: Damian Głowala <damian.glowala.rebkow@gmail.com>
2023-11-09 18:01:13 +01:00

24 lines
468 B
Vue

<script setup lang="ts">
const route = useRoute('nested-foo-bar')
</script>
<template>
<div>
<div>nested/[foo]/[bar].vue</div>
<div>foo: {{ route.params.foo }}</div>
<div>bar: {{ route.params.bar }}</div>
<NuxtLink
id="user-test"
to="/nested/foo/user-test"
>
to /nested/foo/user-test
</NuxtLink>
<NuxtLink
id="test"
to="/nested/foo/test"
>
to /nested/foo/test
</NuxtLink>
</div>
</template>