Skip to main content

NotificationService

Provides toast notification functionality.

Example

Ts

constructor

method(i18nService: I18nService, resolver: ComponentFactoryResolver, overlayHostService: OverlayHostService) => NotificationService

success

method(message: string, translationVars?: { [key: string]: string | number }) => void

Display a success toast notification

info

method(message: string, translationVars?: { [key: string]: string | number }) => void

Display an info toast notification

warning

method(message: string, translationVars?: { [key: string]: string | number }) => void

Display a warning toast notification

error

method(message: string, translationVars?: { [key: string]: string | number }) => void

Display an error toast notification

notify

method(config: ToastConfig) => void

Display a toast notification.

The types of notification available.

Signature

Configuration for a toast notification.

Signature

message

propertystring

translationVars

property{ [key: string]: string | number }

type

duration

propertynumber
Was this chapter helpful?
Report Issue
Edited Feb 23, 2026ยทEdit this page