Open wojtiku opened 5 years ago
Duplicate of https://github.com/vuejs/vue/issues/7904
I'm confused because it doesn't work with the old syntax either, but it sounds like it did work for you with the old syntax
Now I am confused. It works with the old syntax. This is the same code as above just the slot syntax is different: https://codesandbox.io/s/vue-template-crbwt
Sorry for a duplicate, I haven't found it even though I was looking for it.
My bad, I was using both syntaxes at the same time. The other issue now works, so I'm not sure about so maybe it was reconsidered later and something is missing in the new implementation
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.