I am facing an issue with splitting a list of items using different delimiters. While semicolons work fine, newline characters are causing problems. How can I modify this to make it work with new lines and display line breaks?
Working solution:
[value]="productList.join('; ')"
Non-functional attempts:
[value]="productList.join('\n ')"
[value]="productList.join('\r ')"
[value]="productList.join('\n\r ')"
My current setup involves Angular 8 with Typescript.
For more details, check out this resource: JavaScript Newline Character