Skip to main content
cngx-src documentation

withAlerts

Functionui/feedback

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

Description#

Enable the scoped alert system within provideFeedback().

Provides CngxAlerter at the environment level for root-level injection. Without this feature, CngxAlerter is only available via CngxAlertStack's viewProviders (scoped injection).

The token is opaque - always use provideFeedback() with feature functions, never construct the config object manually.

Signature#

withAlerts(opts?)

Parameters#

@paramopts?

Optional alert defaults.

provideFeedback(
withToasts(),
withAlerts(),
)

Returns#

FeedbackFeature