Qonq Qonq - 11 months ago 65
AngularJS Question

angular: Newlines in are not printed in paragraph tag

I am trying to show text from a text-area in a '< p >' tag.
The newlines are ignored when the output is printed in the < p > tag.

Check following:


using angular for databinding

How can I make the < p > tag to print the newlines?

Answer Source

Use white-space: pre; on your lines class (please note you have missed a dot referencing your class in the CSS file.


Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download