Using Angular 4 - the following snippet of code resides in my typescript file.
this.tabTitle = "Project Name: " + this.currentProjectRevision.ProjectInformation[0].ProjectName;
this grabs the value of the project name and concatenates it with Project name:
this.tabTitle = this.tabTitle.concat('/n' + " Quote ID: " + this.quoteInformation.CurrentProjectCustomer.QuoteId);
The above code grabs the first line of codes values and concatenates it with Quote ID: and adds the value of the Quote ID.
When running this, the output is as follows. Project Name: test /n Quote ID: 0000001
The actual value stated above gets appended into the following code. Project Name: bvn xbn/n Quote ID: 1000016
I would like to have quote ID start on a new line.
I have tried putting in <br/>, <br> as well as /n will no success. They are all being added as a string.
Code I have tried so far
this.tabTitle = this.tabTitle.concat('<br/>' + " Quote ID: " + this.quoteInformation.CurrentProjectCustomer.QuoteId);
this.tabTitle = this.tabTitle.concat('<br>' + " Quote ID: " + this.quoteInformation.CurrentProjectCustomer.QuoteId);
this.tabTitle = this.tabTitle.concat('/n' + " Quote ID: " + this.quoteInformation.CurrentProjectCustomer.QuoteId);
Any help will be greatly appreciated.
tabTitleand how you use it in the HTML markup.