<ng-template> with [ngIf] does not render SVG content #41308
Labels
area: core
Issues related to the framework runtime
cross-cutting: SVG
P4
A relatively minor issue that is not relevant to core functions
state: has PR
Milestone
🐞 bug report
Affected Package
Probably @angular/core ?
Is this a regression?
Don't know
Description
When using an
<ng-template>
in the non-asterisk longhand form to render SVG fragments, neither the main template nor the else template are rendered:Note that using
<ng-container>
with the structural*ngIf
form does work:Given other issues I've had with svg, I've tried both with and without
svg:
namespace prefixes on the child svg elements. Seems to exhibit the same behaviour in both cases.🔬 Minimal Reproduction
https://stackblitz.com/edit/angular-ivy-kpeerk
🌍 Your Environment
Angular Version:
Anything else relevant?
The text was updated successfully, but these errors were encountered: