I am trying to add a new line to a string in Angular application. In component.ts file I have added a variable which takes a string value.
heading="Lorem ipsum dolor sit amet. \n consetetur sadipscing elitr."
In component.html file I am calling this variable.
<div>{{heading}}</div>
But no new line is generated and the text is one single paragraph. Can someone help me with this.
– nucleaR Jul 30 '20 at 08:05
consetetur sadipscing elitr." – Benni Russell Jul 30 '20 at 08:22