Skip to main content
cngx-src documentation

CngxMatTabHalfWiredSlotSink

Type Aliasui/mat-tabs

projects/ui/mat-tabs/decorations/half-wired-slot-sink.ts

Description#

Sink callback invoked by [cngxMatTabs]'s aggregator-decoration projector when a consumer wires exactly one of *cngxMatTabAggregatorContent (the slot template) or ViewContainerRef (the embedded-view host) — the half-wired-slot misconfiguration. The projector silently falls back to the imperative textContent path when this happens; the sink is the only deliberate signal that the consumer's slot template will not render.

Override via provideMatTabsConfig(withHalfWiredSlotSink(fn)) to wire production telemetry (Sentry breadcrumbs, custom logger, CI fail-fast). The library default is a dev-mode console.warn; the exported CNGX_DEFAULT_HALF_WIRED_SLOT_SINK value lets test doubles compose against a stable reference.

Definition#

function