[Vuejs]-Is it possible to use the same nuxt child route in multiple parent pages

1👍

I achieved this by refactoring the page as a component and rendering the component on multiple pages.

components/MyPageComponent.vue

<template>
   <h1>Your content here.</h1>
</template>

<script setup lang="ts">
// do your script stuff here
</script>

pages/parent/page.vue

<template>
   <MyPageComponent />
</template>

pages/other-parent/page.vue

<template>
  <MyPageComponent />
</template>

Leave a comment