angular/tools/manual_api_docs/elements/ng-content.md
Jeremy Elbourn 64db486edc build: add rules for generating block/element API data (#52480)
Adds build rules for "artificially" generating `DocEntry` collections for block and element APIs. The two rules are very similar, but _just_ different enough that it's worth having two separate implementations.

PR Close #52480
2023-11-02 11:02:08 -07:00

12 lines
642 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.