Skip to main content
cngx-src documentation

provideStatCardConfig

Functionui/stat-cardv0.1.0

projects/ui/stat-card/config/provide-stat-card-config.ts

Description#

Application-root configuration cascade for the stat-card. Pass any combination of withStatCardAriaLabels and withStatCardLoadingTreatment in bootstrapApplication's providers array.

bootstrapApplication(AppComponent, {
  providers: [
    provideStatCardConfig(
      withStatCardAriaLabels({ errorFallback: 'Kennzahl nicht verfügbar' }),
      withStatCardLoadingTreatment('skeleton'),
    ),
  ],
});

Signature#

provideStatCardConfig(...features: undefined)

Parameters#

@paramfeatures

Returns#

EnvironmentProviders