The Notification provides options for controlling its content.
To configure the content, use any of the following approaches:
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.
Register all dynamically created components as
NgModuleof the application. Otherwise, Angular throws a
no component factory exists for the componentruntime error.