New to Kendo UI for Angular? Start a free 30-day trial

Content

The Notification provides options for controlling its content.

To configure the content, use any of the following approaches:

Passing a String

Passing a string to the content field is the basic way to display a notification message. The text that is passed represents the rendered content of the notification.

Example
View Source
Change Theme:

Using Templates

To set a template for the content area of the Notification, pass a TemplateRef to the content field of the show method.

Example
View Source
Change Theme:

Rendering a Component

To render a component in the content area of the Notification, pass a component type in the content field of the show method.

Register all dynamically created components as entryComponents in the NgModule of the application. Otherwise, Angular throws a no component factory exists for the component runtime error.

Example
View Source
Change Theme: