Skip to main content
cngx-src documentation

CNGX_CHIP_GROUP_HOST

Tokenv0.1.0WCAG AA

InjectionToken<CngxChipGroupHost>

Description#

DI token a CngxChipInGroup leaf injects to find its parent chip group. Always provided via { provide: CNGX_CHIP_GROUP_HOST, useExisting: <Self> } - never via concrete-class injection. Required (NOT optional) on the leaf side: a leaf without a parent throws NullInjectorError at construction (fail-fast - silent dual-source-of-truth would be worse).

Standalone chips outside any group use [cngxChipInteraction] instead, which provides CNGX_CONTROL_VALUE directly without ever touching this token.

Type#

InjectionToken<CngxChipGroupHost>