Back to Angular

Ng Content

tools/manual_api_docs/elements/ng-content.md

22.0.0-next.10628 B
Original Source

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

Attributes

AttributeDescription
selectCSS 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.