Skip to main content
Version: 11.14.0

ChildMarker

The ChildMarkerDirective marks a child element so that a parent component can discover and render it dynamically via its TemplateRef. It exposes the template publicly for structural composition patterns.

Usage

<ng-template childMarker>
<span>Dynamic content</span>
</ng-template>

API Reference

Properties

NameTypeDescription
templateTemplateRef<unknown>The template ref of the marked child element, injected and exposed for the parent to consume.