CngxStatCoordinator
projects/common/data/display/stat/stat-coordinator.directive.ts
Import#
import { CngxStatCoordinator } from '@cngx/common/data'
Description#
The slot-id coordination brain behind CNGX_STAT. Collects the id each
cngxStat* slot registers and derives one aria-labelledby that reads the
whole stat as a single accessible name in reading order.
Lives as a host directive rather than inside CngxStat because the slot
directives resolve CNGX_STAT against their declaration site: content
written inside an organism never reaches a <cngx-stat> that sits in that
organism's own template. Any component that wants to host the four slots
therefore applies this brain and re-points the token at it:
hostDirectives: [CngxStatCoordinator],
providers: [{ provide: CNGX_STAT, useExisting: CngxStatCoordinator }],Same shape as CngxPaginate behind CNGX_PAGINATOR_HOST, which
CngxPaginator and CngxIncrementalList share the same way.