Skip to main content
cngx-src documentation

CNGX_STAT_CARD_CONFIG

Tokenv0.1.0

InjectionToken<CngxStatCardConfig>

Description#

App-wide configuration cascade for the stat-card. Resolves in priority order:

  1. Per-instance Input binding.
  2. provideStatCardConfigAt(...) in a parent component's viewProviders.
  3. provideStatCardConfig(...) at the application root.
  4. Library defaults (this token's factory).

providedIn: 'root' with a default factory means consumers never need to provide the token explicitly - inject(CNGX_STAT_CARD_CONFIG) always resolves.

Type#

InjectionToken<CngxStatCardConfig>

Provided in#

'root'