Skip to main content
cngx-src documentation

provideFeedback

Functionui/feedback

projects/ui/feedback/config/feedback-config.ts

Description#

Register global defaults for all feedback components.

bootstrapApplication(AppComponent, {
  providers: [
    provideFeedback(
      withSpinnerTemplate(MyLucideSpinner),
      withAlertIcons({ error: MyErrorIcon, warning: MyWarningIcon }),
      withLoadingDefaults({ delay: 300, minDuration: 600 }),
    ),
  ],
});

Signature#

provideFeedback(...features: undefined)

Parameters#

@paramfeatures

Returns#

EnvironmentProviders