posva / unplugin-vue-router

Next Generation file based typed routing for Vue Router
https://uvr.esm.is
MIT License
1.7k stars 82 forks source link

Named views at root #484

Closed Ericlm closed 3 months ago

Ericlm commented 3 months ago

I have the following pages/index.vue:

<template>
  <RouterView name="sidebar" />

  <RouterView />
<template>

The pages are displayed correctly inside of the RouterView, but when creating the file index@sidebar.vue, it doesn't get displayed inside of <RouterView name="sidebar" />. Am I doing something wrong? This would be handy when using named views at index.vue 🙂.