angular/aio/content/special-elements/core/ng-content.md
Matthieu Riegler 019c2d2f14 docs: selector precisions (#50534)
This commit fixes the layout of the page and adds a precision on what selectors are supported by ng-content

See #50511

PR Close #50534
2023-06-01 08:43:59 -07:00

385 B

The <ng-content> element specifies where to project content inside a component template.

@elementAttribute select="selector"

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.