In some case, you can use split()
function.
.replace function is not compliant with regexp syntax (i.e. .replace(/,/g,'\n')
syntax)
Full syntax:
{{myVar.toString().split(',').join('\n')}}
.toString()
function is in case myVar is not typed as String in typescript.