[Vuejs]-JS(vue.js), How can i use linefeed? (\n)

-1👍

The browser condenses all whitespace in text content into a single space, and you can’t include HTML entities in normal (mustache) interpolation. You need the v-html directive.

<div v-html="rawHtml"></div>

The contents of this div will be replaced with the value of the
rawHtml property, interpreted as plain HTML – data bindings are
ignored.

So you would have to modify the notification component to use v-html, and then use #5 with it.

Leave a comment