Angular · Junior · Question 54 of 75
What does <ng-container> render in the DOM?
- ✓Correct answer: Nothing - it groups elements or directives without adding an extra element
- 2A
<div>with no styles - 3A custom element
<ng-container>
Explanation
It's handy when a wrapper element would break layout (e.g. inside a <ul> or a flex container) or to host a structural directive.