Skip to content

Named/multiple outlets support #213

@noirbizarre

Description

@noirbizarre

It would be very nice to have named outlet support.

It's mostly to have easy modals support and being able to write something like:

<body>
<div>
   <router-view name="modal"></router-view>
</div>
<router-view ></router-view>
</body>
router.map({
    '/somewhere/': {
        component: Somewhere,
        subRoutes: {
            'action/': {
                 component: Modal,
                 outlet: 'modal'
            }
        }
    }
});

Then, routing to /somewhere/action/ should bring the Somewhere component and display the modal over.

My case is for modal, but I think whenever you have an outer layout with multiple reusable slots, a single outlet is not sufficient.

If there is already a way of doing this, I'm interested in.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions