Skip to main content
cngx-src documentation

CNGX_TOC_CONFIG

Tokenv0.1.0

InjectionToken<CngxTocConfig>

Description#

App-wide configuration cascade for the table-of-contents organism. Resolves in priority order:

  1. Per-instance Input binding.
  2. provideTocConfigAt(...) in a parent component's viewProviders.
  3. provideTocConfig(...) 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_TOC_CONFIG) always resolves. Consumers who want overrides call provideTocConfig(...) in bootstrapApplication providers (root cascade) or provideTocConfigAt(...) in a component's viewProviders (sub-tree cascade).

Type#

InjectionToken<CngxTocConfig>

Provided in#

'root'