2023-11-01 01:02:22 +00:00
|
|
|
The `<ng-content>` element specifies where to project content inside a component template.
|
|
|
|
|
|
2025-11-06 18:03:05 +00:00
|
|
|
## Attributes
|
2023-11-01 01:02:22 +00:00
|
|
|
|
2025-11-06 18:03:05 +00:00
|
|
|
| Attribute | Description |
|
|
|
|
|
| --------- | ----------------------------------------------------------------------- |
|
|
|
|
|
| `select` | CSS selector. Matching elements are projected into this `<ng-content>`. |
|
2023-11-01 01:02:22 +00:00
|
|
|
|
|
|
|
|
Only select elements from the projected content that match the given CSS `selector`.
|
|
|
|
|
|
|
|
|
|
Angular supports [selectors](https://developer.mozilla.org/docs/Web/CSS/CSS_Selectors) for any
|
|
|
|
|
combination of tag name, attribute, CSS class, and the `:not` pseudo-class.
|