Skip to main content
cngx-src documentation

provideLoadingConfig

Functioncore/utils

projects/core/utils/loading-config.ts

Description#

Register app-wide loading timing defaults.

bootstrapApplication(AppComponent, {
  providers: [provideLoadingConfig(withShowDelay(200), withMinDwell(600))],
});

Features resolve against CNGX_LOADING_DEFAULTS, not against an ancestor config: every field a with* feature does not touch carries the library default. The same rule applies to provideLoadingConfigAt, so a nested scope does not inherit app-wide overrides - restate them if the subtree should keep them.

Signature#

provideLoadingConfig(...features: undefined)

Parameters#

@paramfeatures

Returns#

EnvironmentProviders