ng-content
The <ng-content> element specifies where to project content inside a component template.
Description
The <ng-content> element specifies where to project content inside a component template.
Attributes
| Attribute | Description |
|---|---|
select | CSS selector. Matching elements are projected into this <ng-content>. |
Only select elements from the projected content that match the given CSS selector.
Angular supports selectors for any combination of tag name, attribute, CSS class, and the :not pseudo-class.
Super-powered by Google ©2010–2025.
Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.
https://angular.dev/api/core/ng-content