Open wureka opened 4 years ago
By default, the notification title can only be a string. Otherwhise, we would have to circumvent the integrated Angular XSS protection.
You could, though, use a custom template to use custom HTML, such as line breaks. See:
What if I'm using it as a global service, from where I do the notifier.show() instead from the component? Have I to pass the template from every component that use it? Or am I missing something?
I'm using at the moment this workaround:
::ng-deep .notifier__notification-message {
white-space: pre-line;
}
I'm using at the moment this workaround:
::ng-deep .notifier__notification-message { white-space: pre-line; }
thank you bro. its worked.
How to display a message of multi lines?
I have tried
all don't work.