Nuxt/test/fixtures/basic/pages/nested/[foo]/[bar].vue

24 lines
468 B
Vue
Raw Permalink Normal View History

<script setup lang="ts">
const route = useRoute('nested-foo-bar')
</script>
2022-03-08 18:03:21 +00:00
<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>
2022-03-08 18:03:21 +00:00
</div>
</template>