Skip to main content
cngx-src documentation

createDirectiveByIdMap

Functioncommon/tabs/registry

projects/common/tabs/registry/directive-by-id-map.ts

Description#

Build a Signal<Map<string, T>> from a Signal<readonly T[]> of directives keyed by id(). Structural equal prevents cascade when contentChildren re-emits an unchanged child set. Shared by <cngx-tab-group>, <cngx-stepper>, and <cngx-mat-stepper>.

Signature#

createDirectiveByIdMap(opts: CngxDirectiveByIdMapOptions)

Parameters#

Returns#

Signal>