Skip to content

How to set component to nested router-view? #1030

@bissolli

Description

@bissolli

Hey guys!

I have the following router-view structure:

  • router-view:default
    - router-view:tab (it's nested on my default router-view)
  • router-view:modal

So I would like to do my router to Open my modal but I would like to choose what is opening behind it!

{
        name: 'leads.show.quotations.create',
        path: '/leads/:id/quotations/create',
        components: {
            default: Show,
            'default.tab': Quotations,
            modal: Add
        },
        meta: { requiresAuth: true }
}

The code above does not work! I have tried replace 'default.tab' for only tab and it does work neither!

Any ideias? I just want to keep my modals controlled my VueRouted and that's was my solution!

When there is no sub component it works great! But when there is those sub components it breaks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions