concept line break in category angular

appears as: line breaks, line breaks
Getting MEAN with Mongo, Express, Angular, and Node.js 2ED

This is an excerpt from Manning's book Getting MEAN with Mongo, Express, Angular, and Node.js 2ED.

This code snippet has been formatted for readability; the document that MongoDB returns to the shell won’t have the line breaks and indentation. But the MongoDB shell can prettify it for you if you add .pretty() to the end of the command, like this:

As components go, this one is simple. No magic is going on here. Note, though, that you’ve still got the \n characters to denote line breaks.

Figure 9.15. Using the htmlLineBreaks pipe in conjunction with the property binding, you now see the line breaks rendering as intended.