Skip to content

Can't use the new v-slot syntax inside a template tag that is there only for conditional purposes #10188

Open
@wojtiku

Description

@wojtiku

Version

2.6.10

Reproduction link

https://codesandbox.io/s/vue-template-9r28t

Steps to reproduce

Visit the repo and check out the template compilation error for App.vue. Remove the <template v-else> to get rid of the error.

What is expected?

The template compiles properly

What is actually happening?

The template doesn't comiple


Vue should allow to use slots inside a template tag that is inside component. Without this, the new slot syntax severely limits how one can put content into slots in more complex scenarios and forces repeating yourself on multiple template tags.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions