私はhtmlページで以下の補間を使用しました。角度2の文字列を置き換えるには?
<div>{{config.CompanyAddress.replace('\n','<br />')}}</div>
または
<div>{{config.CompanyAddress.toString().replace('\n','<br />')}}</div>
を使用するが、両方は
{{config.CompanyAddress.replace('\n','<br />')}}
{{config.CompanyAddress.toString().replace('\n','<br />')}}
パイプを作成します。 – hgoebl