-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to display a message of multi lines? #157
Comments
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;
} |
thank you bro. its worked. |
How to display a message of multi lines?
I have tried
all don't work.
The text was updated successfully, but these errors were encountered: