2.0.2
https://jsfiddle.net/baturYe/x4m8w2xv/2/~~
https://jsfiddle.net/baturYe/x4m8w2xv/5/
template displays correctly
I am playing #5097 and found that when put \>
in the template string, the result is not expected.
child
component doesn't output the slot content anywherechild
template has invalid html in line 15Please explain in more detail what you actually expect, because it's not clear to me. It seems you think that you can concatenate slot contents. You can't, that's not a functionality Vue provides.
I will label this as "needs repo" because the reproduction provided does not work.
Sorry, I paste the wrong link, I know it's invalid to use like that. Should vue complain about it when it is coded like this?
Well, that's because the backslash is an escape character in Javascript strings. using \\
leads to the expected result.
Most helpful comment
child
component doesn't output the slot content anywherechild
template has invalid html in line 15Please explain in more detail what you actually expect, because it's not clear to me. It seems you think that you can concatenate slot contents. You can't, that's not a functionality Vue provides.
I will label this as "needs repo" because the reproduction provided does not work.