So I\'m trying to do something very simple and I\'m stuck. I have a String variable and within that variable I Wanna set line break so certain part of the text
String
You have done the right thing. But if you are showing this in a browser, the \n means didley.
You have to do:
title: string = "MyTitle"
Now if you are using a fancy front end tool like React, you will have to deal with unsafe HTML in strings...