Skip to main content
cngx-src documentation

CngxMatTabsRegistryHost

Interface

projects/ui/mat-tabs/mat-tabs-registry.directive.ts

Referenced by#

Import#

import { CngxMatTabsRegistryHost } from '@cngx/ui/mat-tabs'

Description#

Read-mostly contract for the per-tab handle-setup registry. [cngxMatTabError] and any future [cngxMatTab*] decoration directive injects this with { host: true } to reach the per-handle errorAggregator slot without walking the concrete registry class.

Return type narrows to Pick<..., 'errorAggregator'> so the access path exposes only the per-handle aggregator slot; the rest of the setup stays internal bookkeeping.

Index#

Methods#

getHandleSetup#Pick | undefined
getHandleSetup(matTab: MatTab)

Returns the per-handle writable slots (errorAggregator, directError), or undefined before the tab is registered. The contentChildren(MatTab) query lands during content-init, so a same-microtask injection from an attribute directive can race; consumers recover by tracking presenter.tabs() and re-attempting on the next sync tick.

@parammatTabMatTab