angular/tools/manual_api_docs/elements/ng-content.md
Alan Agius 26fed34e0e
build: format md files
This commit configures prettier to format markdown files.
2025-11-06 10:03:05 -08:00

12 lines
629 B
Markdown

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](https://developer.mozilla.org/docs/Web/CSS/CSS_Selectors) for any
combination of tag name, attribute, CSS class, and the `:not` pseudo-class.