-
-
Notifications
You must be signed in to change notification settings - Fork 108
Open
Labels
has workaroundhas a temporary fix to get around the problemhas a temporary fix to get around the problem⚡️ enhancementimprovement over an existing featureimprovement over an existing feature
Description
Creating folders create routes and any file inside them becomes a nested route. This wasn't possible before v4.1 but now it makes sense to allow defining meta properties (mainly but also any other route property) at this level
This could maybe be achieved with a special file users/__route.js
that exports some properties like name, meta, etc (the same as in the <route>
block)
Currently it's possible to create a nested route thanks to groups:
- /pages/(my-group).vue
- /pages/(my-group)/users.vue
The (my-group).vue
allows to define common options:
<script setup lang="ts">
definePage({})
</script>
<template>
<RouterView />
<template>
unfortunately, it creates a name for the route. Using a special file would allow to:
- use a plain js/ts file
- Not create a name by default
I'm tracking here these issues:
danrocha, manmen-mi, Soviut, WinsleyJ, TheoDaviet and 4 more
Metadata
Metadata
Assignees
Labels
has workaroundhas a temporary fix to get around the problemhas a temporary fix to get around the problem⚡️ enhancementimprovement over an existing featureimprovement over an existing feature
Projects
Status
🔖 Ready