Skip to content

support for layouts #712

@posva

Description

@posva

Similar to #33, there should be a way to group properties related to router (meta, data loaders) that also contain a layout.

Different possibilities:

  • +layout.vue inside of a folder -> creates a route record that isn't matchable and becomes the parent of any route inside of the folder. Same behavior as nested.vue + nested/ without letting the route be matchable
  • layouts/ folder -> default.vue, content.vue, etc define custom layouts that can be defined as parent of any page and that exist as non matchable route records

Alternatives:

  • Defining custom components with <slot> but this does not allow nested layouts or adding properties to the route record

Metadata

Metadata

Assignees

No one assigned

    Labels

    💬 discussiontopic that requires further discussion

    Projects

    Status

    📋 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions