Skip to main content
cngx-src documentation

CNGX_SIDENAV_CONFIG

Tokenv0.1.0

InjectionToken<CngxSidenavConfig>

Description#

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

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

Type#

InjectionToken<CngxSidenavConfig>

Provided in#

'root'