Skip to main content
cngx-src documentation

withToasts

Functionui/feedback

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

Description#

Enable the toast system within provideFeedback().

Provides CngxToaster at the environment level. Without this feature, CngxToastOn and CngxToastOutlet will throw a NullInjectorError at runtime.

Signature#

withToasts(opts?)

Parameters#

@paramopts?

Optional toast defaults.

provideFeedback(
withToasts(),
withAlertIcons({ error: MyErrorIcon }),
)

Returns#

FeedbackFeature