मैंने 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