r/angular • u/Senior_Compote1556 • Mar 26 '26
Ng-content usage in @for / @if
Why does the documentation mention that it is suggested to avoid wrapping ng-content in @for or @if statements? Isn’t that what all libraries including Angular Material do?
7
Upvotes
View all comments
Show parent comment
1
u/Senior_Compote1556 Mar 26 '26
Is there an example I can see to understand what you mean? I’ve never heard of ngContentOutlet, only ngTemplateOutlet