Skip to main content
cngx-src documentation

CNGX_TAG_CONFIG

Tokenv0.1.0

InjectionToken<CngxTagConfig>

Description#

App-wide configuration cascade for the tag family. Resolves in priority order:

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

Type#

InjectionToken<CngxTagConfig>

Provided in#

'root'