Skip to main content
cngx-src documentation

provideErrorRegistry

Functioncommon/interactive/errorv0.1.0

projects/common/interactive/error-registry/provide-error-registry.ts

Description#

Provides CngxErrorRegistry and optional global reveal triggers.

Composes feature flags via _apply partial-config functions, mirroring provideFormField's shape. Without features, registers the registry only; pair with withGlobalRevealOnSubmit or withRevealOnNavigate to install ambient reveal behaviour.

bootstrapApplication(AppComponent, {
  providers: [
    provideErrorRegistry(
      withGlobalRevealOnSubmit(),
      withRevealOnNavigate(),
    ),
  ],
});

Signature#

provideErrorRegistry(...features: undefined)

Parameters#

@paramfeatures

Returns#

EnvironmentProviders