I have variable in which sometimes big length string comes, I want to break this string based on comma(,) if string exceed the 20 characters.
Suppose my string is "ABCFinancialInstitute,AMI". It should display on my html like this
ABCFinancialInstitute,
AMI
I tried this
<label *ngIf="!editMode">
{{settingLabel.split(',')}}
</label>
Can any one help in this. thanks in advance!!